Nodes/ComfyUI_Swwan/RGBA Safe Pre (Swwan)
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.

By aining2022·Created 9 months ago·Updated about a month ago· 27
RGBA Safe Pre (Swwan)
  • image
  • mask
  • image_out
  • alpha
  • has_alpha
CategorySwwan/RGBA

Inputs (2)

NameTypeDefaultDescription
imageIMAGEInput RGB image from Load Image or any IMAGE node.
maskMASKMASK from Load Image. ComfyUI stores alpha as 1 - alpha in this mask.

Outputs (3)

NameTypeDescription
image_outIMAGE
alphaMASK
has_alphaBOOLEAN