Nodes/ComfyUI-nhknodes/🎨 RGBA Flatten (nhk)
ComfyUI Node

🎨 RGBA Flatten (nhk)

Flatten RGBA to RGB over solid background, eliminating alpha artifacts

By EnashkaΒ·Created 11 months agoΒ·Updated about a month agoΒ· 22
🎨 RGBA Flatten (nhk)
  • image
  • mask
  • image
β—„background_color#FFFFFFβ–Ί
β—„alpha_threshold0.00β–Ί
β—„linear_blendfalseβ–Ί
Categorynhk/image

Inputs (5)

NameTypeDefaultDescription
imageIMAGEInput image (RGB or RGBA)
background_colorSTRING#FFFFFFBackground color as hex (e.g., #FFFFFF, #000000, #F2F2F2)
maskoptMASKOptional mask input (used if image has no alpha channel)
alpha_thresholdoptFLOAT0.000–1Pixels with alpha below this are treated as fully transparent (0.0 = disabled)
linear_blendoptBOOLEANfalseBlend in linear color space (more accurate, slower)

Outputs (1)

NameTypeDescription
imageIMAGEβ€”