From 6486ec9a56e2393e00cb5cc6c55619c8b6b3395b Mon Sep 17 00:00:00 2001 From: trufty Date: Mon, 19 Sep 2022 13:18:16 -0400 Subject: Automatically show PNGinfo when uploading image --- modules/extras.py | 3 +++ modules/ui.py | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/extras.py b/modules/extras.py index cc8fed1b..a38310f0 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -98,6 +98,9 @@ def run_extras(image, image_folder, gfpgan_visibility, codeformer_visibility, co def run_pnginfo(image): + if image is None: + return '', '', '' + items = image.info if "exif" in image.info: diff --git a/modules/ui.py b/modules/ui.py index bbd4e2b8..2c5422c7 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -806,6 +806,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): ], allow_flagging="never", analytics_enabled=False, + live=True, ) def create_setting_component(key): -- cgit v1.2.1