Automatically show PNGinfo when uploading image

This commit is contained in:
trufty 2022-09-19 13:18:16 -04:00 committed by AUTOMATIC1111
parent dd911a47b3
commit 6486ec9a56
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,9 @@ def run_extras(image, image_folder, gfpgan_visibility, codeformer_visibility, co
def run_pnginfo(image): def run_pnginfo(image):
if image is None:
return '', '', ''
items = image.info items = image.info
if "exif" in image.info: if "exif" in image.info:

View file

@ -806,6 +806,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
], ],
allow_flagging="never", allow_flagging="never",
analytics_enabled=False, analytics_enabled=False,
live=True,
) )
def create_setting_component(key): def create_setting_component(key):