Cleaner image metadata read
This commit is contained in:
parent
a6e653be26
commit
7a1bbf99da
@ -666,8 +666,12 @@ def read_info_from_image(image):
|
||||
geninfo = exif_comment
|
||||
|
||||
for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
|
||||
'loop', 'background', 'timestamp', 'duration']:
|
||||
'loop', 'background', 'timestamp', 'duration', 'progressive', 'progression',
|
||||
'icc_profile', 'chromaticity']:
|
||||
try:
|
||||
items.pop(field, None)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if items.get("Software", None) == "NovelAI":
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user