mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 20:33:06 -08:00
Merge pull request #13068 from JaredTherriault/master
Load comments from gif images to gather geninfo from gif outputs
This commit is contained in:
commit
0c71967a53
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue