Skip to content

Commit

Permalink
make it so that PNG images with EXIF do not lose parameters in PNG in…
Browse files Browse the repository at this point in the history
…fo tab
  • Loading branch information
AUTOMATIC1111 committed Jan 17, 2023
1 parent 38b7186 commit 3a0d6b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,9 @@ def read_info_from_image(image):
except ValueError:
exif_comment = exif_comment.decode('utf8', errors="ignore")

items['exif comment'] = exif_comment
geninfo = exif_comment
if exif_comment:
items['exif comment'] = exif_comment
geninfo = exif_comment

for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
'loop', 'background', 'timestamp', 'duration']:
Expand Down

0 comments on commit 3a0d6b7

Please sign in to comment.