mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 04:43:14 +08:00
logg
This commit is contained in:
parent
9e52c45eaa
commit
f843b344af
@ -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":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user