From a25c2f2e2af3f191c1ab0bda53d0063a109a16de Mon Sep 17 00:00:00 2001 From: thot-experiment Date: Wed, 23 Apr 2025 13:00:09 -0700 Subject: [PATCH] fix transparency not working --- comfy_api_nodes/nodes_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_api_nodes/nodes_api.py b/comfy_api_nodes/nodes_api.py index ffe6bf827..5db7c9529 100644 --- a/comfy_api_nodes/nodes_api.py +++ b/comfy_api_nodes/nodes_api.py @@ -53,7 +53,7 @@ def validate_and_cast_response (response): raise Exception("Failed to download the image") img = Image.open(io.BytesIO(img_response.content)) - img = img.convert("RGB") # Ensure RGB format + img = img.convert("RGBA") # Convert to numpy array, normalize to float32 between 0 and 1 img_array = np.array(img).astype(np.float32) / 255.0