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 /modules/extras.py | |
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
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 3 |
1 files changed, 3 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:
|