Skip to content

Commit 022639a

Browse files
Load comments from gif images to gather geninfo from gif outputs
1 parent 5e16914 commit 022639a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/images.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]:
728728
if exif_comment:
729729
items['exif comment'] = exif_comment
730730
geninfo = exif_comment
731+
elif "comment" in items: # for gif
732+
geninfo = items["comment"].decode('utf8', errors="ignore")
731733

732734
for field in IGNORED_INFO_KEYS:
733735
items.pop(field, None)

0 commit comments

Comments
 (0)