Merge pull request #10697 from catboxanon/patch/image-info

Cleaner image metadata read
This commit is contained in:
AUTOMATIC1111 2023-05-27 20:07:51 +03:00 committed by GitHub
commit 5d29672b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: