diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-30 06:33:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 06:33:14 +0000 |
commit | 0c71967a53610627d249b721eea4e5e2d9ea5b3f (patch) | |
tree | 1172902027bdffa406d8ad419800ed9eab60104e | |
parent | b20cd352d913368b9969e9f32c1451a067b6a66b (diff) | |
parent | 022639a145751d61db1c144e5e657aa6481e2bc0 (diff) | |
download | stable-diffusion-webui-gfx803-0c71967a53610627d249b721eea4e5e2d9ea5b3f.tar.gz stable-diffusion-webui-gfx803-0c71967a53610627d249b721eea4e5e2d9ea5b3f.tar.bz2 stable-diffusion-webui-gfx803-0c71967a53610627d249b721eea4e5e2d9ea5b3f.zip |
Merge pull request #13068 from JaredTherriault/master
Load comments from gif images to gather geninfo from gif outputs
-rw-r--r-- | modules/images.py | 2 |
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)
|