diff options
author | trufty <trufty@gmail.com> | 2022-09-19 17:18:16 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-19 19:49:05 +0000 |
commit | 6486ec9a56e2393e00cb5cc6c55619c8b6b3395b (patch) | |
tree | ad9ba83ae303316ae64d980683d32a50d66f4a8d | |
parent | dd911a47b3c3313b3938b700eb26cbd5bb3e1c95 (diff) | |
download | stable-diffusion-webui-gfx803-6486ec9a56e2393e00cb5cc6c55619c8b6b3395b.tar.gz stable-diffusion-webui-gfx803-6486ec9a56e2393e00cb5cc6c55619c8b6b3395b.tar.bz2 stable-diffusion-webui-gfx803-6486ec9a56e2393e00cb5cc6c55619c8b6b3395b.zip |
Automatically show PNGinfo when uploading image
-rw-r--r-- | modules/extras.py | 3 | ||||
-rw-r--r-- | modules/ui.py | 1 |
2 files changed, 4 insertions, 0 deletions
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):
|