aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-09-30 09:33:14 +0300
committerGitHub <noreply@github.com>2023-09-30 09:33:14 +0300
commit0c71967a53610627d249b721eea4e5e2d9ea5b3f (patch)
tree1172902027bdffa406d8ad419800ed9eab60104e /modules
parentb20cd352d913368b9969e9f32c1451a067b6a66b (diff)
parent022639a145751d61db1c144e5e657aa6481e2bc0 (diff)
Merge pull request #13068 from JaredTherriault/master
Load comments from gif images to gather geninfo from gif outputs
Diffstat (limited to 'modules')
-rw-r--r--modules/images.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py
index 592dfacf..1e63118e 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -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)