diff options
author | JaredTherriault <noirjt@live.com> | 2023-09-05 00:37:48 +0000 |
---|---|---|
committer | JaredTherriault <noirjt@live.com> | 2023-09-05 00:37:48 +0000 |
commit | 022639a145751d61db1c144e5e657aa6481e2bc0 (patch) | |
tree | fbb1e1dc5fe6b4eedcf141ec39f12a8211570912 /modules/images.py | |
parent | 5e16914a4e157ab3ed96f8b7841e1290a56f4484 (diff) | |
download | stable-diffusion-webui-gfx803-022639a145751d61db1c144e5e657aa6481e2bc0.tar.gz stable-diffusion-webui-gfx803-022639a145751d61db1c144e5e657aa6481e2bc0.tar.bz2 stable-diffusion-webui-gfx803-022639a145751d61db1c144e5e657aa6481e2bc0.zip |
Load comments from gif images to gather geninfo from gif outputs
Diffstat (limited to 'modules/images.py')
-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 eb644733..8c6e862f 100644 --- a/modules/images.py +++ b/modules/images.py @@ -728,6 +728,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)
|