mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-31 02:23:30 +08:00
logg
This commit is contained in:
parent
9e52c45eaa
commit
f843b344af
@ -439,10 +439,14 @@ class PromptServer():
|
|||||||
headers={"Content-Disposition": f"filename=\"{filename}\""})
|
headers={"Content-Disposition": f"filename=\"{filename}\""})
|
||||||
|
|
||||||
if 'channel' not in request.rel_url.query:
|
if 'channel' not in request.rel_url.query:
|
||||||
|
print("*** no channel, rgba")
|
||||||
channel = 'rgba'
|
channel = 'rgba'
|
||||||
else:
|
else:
|
||||||
|
print("*** channel")
|
||||||
channel = request.rel_url.query["channel"]
|
channel = request.rel_url.query["channel"]
|
||||||
|
|
||||||
|
print(f"*** channel: {channel}")
|
||||||
|
|
||||||
if channel == 'rgb':
|
if channel == 'rgb':
|
||||||
with Image.open(file) as img:
|
with Image.open(file) as img:
|
||||||
if img.mode == "RGBA":
|
if img.mode == "RGBA":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user