This commit is contained in:
bilt 2025-07-05 23:41:16 +08:00
parent 9e52c45eaa
commit f843b344af

View File

@ -439,10 +439,14 @@ class PromptServer():
headers={"Content-Disposition": f"filename=\"{filename}\""})
if 'channel' not in request.rel_url.query:
print("*** no channel, rgba")
channel = 'rgba'
else:
print("*** channel")
channel = request.rel_url.query["channel"]
print(f"*** channel: {channel}")
if channel == 'rgb':
with Image.open(file) as img:
if img.mode == "RGBA":