Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13068 from JaredTherriault/master
Browse files Browse the repository at this point in the history
Load comments from gif images to gather geninfo from gif outputs
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents b20cd35 + 022639a commit 0c71967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]:
if exif_comment:
items['exif comment'] = exif_comment
geninfo = exif_comment
elif "comment" in items: # for gif
geninfo = items["comment"].decode('utf8', errors="ignore")

for field in IGNORED_INFO_KEYS:
items.pop(field, None)
Expand Down

0 comments on commit 0c71967

Please sign in to comment.