ComfyUI Node
RGBA Safe Pre (Swwan)
Converts ComfyUI's inverted load mask back to alpha and premultiplies RGB. Use this before sending a transparent image into RGB-only IMAGE nodes.
RGBA Safe Pre (Swwan)
- image
- mask
- image_out
- alpha
- has_alpha
CategorySwwan/RGBA
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input RGB image from Load Image or any IMAGE node. | |
| mask | MASK | MASK from Load Image. ComfyUI stores alpha as 1 - alpha in this mask. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image_out | IMAGE | — |
| alpha | MASK | — |
| has_alpha | BOOLEAN | — |