Nodes/Transparency Background Remover/Transparency Background Remover
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.

By Limbicnation·Created about a year ago·Updated 4 months ago· 21
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)

NameTypeDefaultDescription
imageIMAGE
toleranceINT300–255Color similarity threshold for background detection (0-255)
edge_sensitivityFLOAT0.800–1Edge detection sensitivity (0-1)
foreground_biasFLOAT0.700–1Bias towards foreground preservation (0-1)
color_clustersINT82–20Number of color clusters for background detection
binary_thresholdINT1280–255Threshold for binary alpha mask (0-255)
output_sizeCOMBOORIGINALTarget output size (power-of-8 dimensions for optimal scaling)
scaling_methodCOMBONEARESTInterpolation method: NEAREST (pixel-perfect), BILINEAR (smooth), BICUBIC (high-quality), LANCZOS (best quality)
edge_refinementoptBOOLEANtrueApply edge refinement post-processing
dither_handlingoptBOOLEANtrueEnable dithered pattern detection and handling
output_formatoptCOMBORGBAOutput format: RGBA with alpha channel or RGB with separate mask
auto_adjustoptBOOLEANfalseAutomatically adjust parameters based on image content analysis
edge_detection_modeoptCOMBOAUTOEdge detection optimization: AUTO (detect content type), PIXEL_ART (sharp edges), PHOTOGRAPHIC (smooth edges)

Outputs (2)

NameTypeDescription
imageIMAGE
maskMASK