mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-05-01 11:41:23 +00:00
fix for control images (#2011)
This commit is contained in:
@@ -96,6 +96,7 @@ class LogicalImage(gr.Textbox):
|
||||
return None
|
||||
|
||||
image = base64_to_image(payload, numpy=self.numpy)
|
||||
if hasattr(image, 'info'):
|
||||
image.info = self.infotext
|
||||
|
||||
return image
|
||||
@@ -104,6 +105,7 @@ class LogicalImage(gr.Textbox):
|
||||
if value is None:
|
||||
return None
|
||||
|
||||
if hasattr(value, 'info'):
|
||||
self.infotext = value.info
|
||||
|
||||
return image_to_base64(value, numpy=self.numpy)
|
||||
|
||||
Reference in New Issue
Block a user