Skip to content

Commit

Permalink
Merge pull request #13463 from FluttyProger/patch-1
Browse files Browse the repository at this point in the history
Ability for extensions to return custom data via api in response.images
  • Loading branch information
AUTOMATIC1111 authored Oct 14, 2023
2 parents 6fe16a9 + f71e919 commit 19f5795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def decode_base64_to_image(encoding):

def encode_pil_to_base64(image):
with io.BytesIO() as output_bytes:

if isinstance(image, str):
return image
if opts.samples_format.lower() == 'png':
use_metadata = False
metadata = PngImagePlugin.PngInfo()
Expand Down

0 comments on commit 19f5795

Please sign in to comment.