Nodes/Transparency Background Remover/Remove Background & Resize
ComfyUI Node

Remove Background & Resize

A ComfyUI node in image/processing with 8 inputs and 2 outputs.

By Limbicnation·Created about a year ago·Updated 4 months ago· 21
Remove Background & Resize
  • image
  • image
  • mask
tolerance30
foreground_bias0.70
color_clusters8
output_sizeORIGINAL
scaling_methodLANCZOS
dither_handlingtrue
binary_threshold128
Categoryimage/processing

Inputs (8)

NameTypeDefaultDescription
imageIMAGEInput image tensor from upstream node
toleranceINT300–255Colour distance threshold. Higher = more aggressive foreground extraction (0-255).
foreground_biasFLOAT0.700–1Bias toward keeping pixels as foreground. Higher = more pixels preserved.
color_clustersINT82–20Number of k-means centres for colour segmentation.
output_sizeCOMBOORIGINALResize output to this size. ORIGINAL keeps source dimensions.
scaling_methodCOMBOLANCZOSInterpolation method. LANCZOS = best quality; NEAREST = pixel-perfect for pixel art.
dither_handlingoptBOOLEANtrueApply edge erosion to suppress dither artefacts.
binary_thresholdoptINT1280–255Alpha mask binarisation cutoff (0-255).

Outputs (2)

NameTypeDescription
imageIMAGE
maskMASK