mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-07 01:32:49 -08:00
FIX: initial_pp RGBA right way
This commit is contained in:
parent
61f488302f
commit
702edb288e
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ def decode_base64_to_image(encoding):
|
|||
raise HTTPException(status_code=500, detail="Invalid encoded image") from e
|
||||
|
||||
|
||||
def encode_pil_to_base64(image):
|
||||
def encode_pil_to_base64(image: Image.Image):
|
||||
with io.BytesIO() as output_bytes:
|
||||
if isinstance(image, str):
|
||||
return image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue