Nodes/ComfyUI_Swwan/RGBA Safe Post (Swwan)
ComfyUI Node

RGBA Safe Post (Swwan)

Resizes alpha to the processed image size and safely unpremultiplies RGB. Use this when you need corrected RGB plus alpha as outputs for downstream nodes.

By aining2022·Created 9 months ago·Updated about a month ago· 27
RGBA Safe Post (Swwan)
  • image
  • alpha
  • image_out
  • alpha_out
has_alpha
epsilon0.0010
CategorySwwan/RGBA

Inputs (4)

NameTypeDefaultDescription
imageIMAGEProcessed IMAGE output, usually after passing through RGB-only nodes.
alphaMASKOriginal alpha returned by RGBA Safe Pre.
has_alphaBOOLEANBoolean flag returned by RGBA Safe Pre. False makes this node act as passthrough.
epsilonFLOAT0.00100.000001–0.1Minimum alpha used during unpremultiply to avoid divide-by-zero and bright edge artifacts.

Outputs (2)

NameTypeDescription
image_outIMAGE
alpha_outMASK