mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-26 18:57:52 +08:00
or channel == 'rgba':
This commit is contained in:
parent
f843b344af
commit
f98bfe47b7
@ -447,7 +447,7 @@ class PromptServer():
|
|||||||
|
|
||||||
print(f"*** channel: {channel}")
|
print(f"*** channel: {channel}")
|
||||||
|
|
||||||
if channel == 'rgb':
|
if channel == 'rgb' or channel == 'rgba': #TODO test
|
||||||
with Image.open(file) as img:
|
with Image.open(file) as img:
|
||||||
if img.mode == "RGBA":
|
if img.mode == "RGBA":
|
||||||
r, g, b, a = img.split()
|
r, g, b, a = img.split()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user