ComfyUI Node
π¨ RGBA Flatten (nhk)
Flatten RGBA to RGB over solid background, eliminating alpha artifacts
π¨ RGBA Flatten (nhk)
- image
- mask
- image
βbackground_color#FFFFFFβΊ
βalpha_threshold0.00βΊ
βlinear_blendfalseβΊ
Categorynhk/image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image (RGB or RGBA) | |
| background_color | STRING | #FFFFFF | Background color as hex (e.g., #FFFFFF, #000000, #F2F2F2) |
| maskopt | MASK | Optional mask input (used if image has no alpha channel) | |
| alpha_thresholdopt | FLOAT | 0.000β1 | Pixels with alpha below this are treated as fully transparent (0.0 = disabled) |
| linear_blendopt | BOOLEAN | false | Blend in linear color space (more accurate, slower) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |