Skip to content

Commit

Permalink
fix for control images (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenOfEquity authored Oct 8, 2024
1 parent 4b69551 commit 7eb824a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules_forge/forge_canvas/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ def preprocess(self, payload):
return None

image = base64_to_image(payload, numpy=self.numpy)
image.info = self.infotext
if hasattr(image, 'info'):
image.info = self.infotext

return image

def postprocess(self, value):
if value is None:
return None

self.infotext = value.info
if hasattr(value, 'info'):
self.infotext = value.info

return image_to_base64(value, numpy=self.numpy)

Expand Down

0 comments on commit 7eb824a

Please sign in to comment.