aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-27 17:07:51 +0000
committerGitHub <noreply@github.com>2023-05-27 17:07:51 +0000
commit5d29672b324c7afd85455a2681de849e3493e29a (patch)
tree729f7d8fd7dc93abe12203a683eeca9ed8305065 /modules/images.py
parentd92a6acf0e3b2b8d19cab606d780f9584c29c1ac (diff)
parent60062b51d821411e8830f321a39ee473431c4535 (diff)
downloadstable-diffusion-webui-gfx803-5d29672b324c7afd85455a2681de849e3493e29a.tar.gz
stable-diffusion-webui-gfx803-5d29672b324c7afd85455a2681de849e3493e29a.tar.bz2
stable-diffusion-webui-gfx803-5d29672b324c7afd85455a2681de849e3493e29a.zip
Merge pull request #10697 from catboxanon/patch/image-info
Cleaner image metadata read
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/images.py b/modules/images.py
index 4e8cd993..93252f41 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -665,9 +665,10 @@ def read_info_from_image(image):
items['exif comment'] = exif_comment
geninfo = exif_comment
- for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
- 'loop', 'background', 'timestamp', 'duration']:
- items.pop(field, None)
+ for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
+ 'loop', 'background', 'timestamp', 'duration', 'progressive', 'progression',
+ 'icc_profile', 'chromaticity']:
+ items.pop(field, None)
if items.get("Software", None) == "NovelAI":
try: