Automatically show PNGinfo when uploading image
This commit is contained in:
parent
dd911a47b3
commit
6486ec9a56
2 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue