ComfyUI Node
Transparency Background Remover
Transparency-aware background removal using multi-algorithm detection (edge, color clustering, corner sampling, dither). Returns an IMAGE (RGBA or RGB depending on output_format) and MASK.
Transparency Background Remover
- image
- image
- mask
◄tolerance30►
◄edge_sensitivity0.80►
◄foreground_bias0.70►
◄color_clusters8►
◄binary_threshold128►
◄output_sizeORIGINAL►
◄scaling_methodNEAREST►
◄edge_refinementtrue►
◄dither_handlingtrue►
◄output_formatRGBA►
◄auto_adjustfalse►
◄edge_detection_modeAUTO►
Categoryimage/processing
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| tolerance | INT | 300–255 | Color similarity threshold for background detection (0-255) |
| edge_sensitivity | FLOAT | 0.800–1 | Edge detection sensitivity (0-1) |
| foreground_bias | FLOAT | 0.700–1 | Bias towards foreground preservation (0-1) |
| color_clusters | INT | 82–20 | Number of color clusters for background detection |
| binary_threshold | INT | 1280–255 | Threshold for binary alpha mask (0-255) |
| output_size | COMBO | ORIGINAL | Target output size (power-of-8 dimensions for optimal scaling) |
| scaling_method | COMBO | NEAREST | Interpolation method: NEAREST (pixel-perfect), BILINEAR (smooth), BICUBIC (high-quality), LANCZOS (best quality) |
| edge_refinementopt | BOOLEAN | true | Apply edge refinement post-processing |
| dither_handlingopt | BOOLEAN | true | Enable dithered pattern detection and handling |
| output_formatopt | COMBO | RGBA | Output format: RGBA with alpha channel or RGB with separate mask |
| auto_adjustopt | BOOLEAN | false | Automatically adjust parameters based on image content analysis |
| edge_detection_modeopt | COMBO | AUTO | Edge detection optimization: AUTO (detect content type), PIXEL_ART (sharp edges), PHOTOGRAPHIC (smooth edges) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |