".github/vscode:/vscode.git/clone" did not exist on "272d63101019c8c7c9905b8840d6f9ce4ecaa613"
Commit f15b4a7f authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'fix-LoadImageMask' of https://github.com/flyingshutter/ComfyUI

parents 6c69853a 9d1c610b
......@@ -940,6 +940,8 @@ class LoadImageMask:
input_dir = folder_paths.get_input_directory()
image_path = os.path.join(input_dir, image)
i = Image.open(image_path)
if i.getbands() != ("R", "G", "B", "A"):
i = i.convert("RGBA")
mask = None
c = channel[0].upper()
if c in i.getbands():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment