Skip to content

Commit 0c71967

Browse files
Merge pull request AUTOMATIC1111#13068 from JaredTherriault/master
Load comments from gif images to gather geninfo from gif outputs
2 parents b20cd35 + 022639a commit 0c71967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/images.py

+2
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]:
739739
if exif_comment:
740740
items['exif comment'] = exif_comment
741741
geninfo = exif_comment
742+
elif "comment" in items: # for gif
743+
geninfo = items["comment"].decode('utf8', errors="ignore")
742744

743745
for field in IGNORED_INFO_KEYS:
744746
items.pop(field, None)

0 commit comments

Comments
 (0)