ComfyUI Node
EditUtils: Alpha Noise Filter lrzjason
Clean the alpha channel of a Qwen-Image 2.1 alpha generation: clip low-value alpha noise, drop small isolated alpha islands, then feather inwards from the edge, and output a clean RGBA image and its mask. Only the alpha channel is modified, and feathering only ever reduces alpha inside the matte, so the silhouette never grows into the transparent background.
EditUtils: Alpha Noise Filter lrzjason
- image
- mask
- image
- mask
◄alpha_threshold0.10►
◄min_area100►
◄feather2.0►
◄invert_maskfalse►
Categoryimage
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | RGBA image, e.g. the VAEDecode output of the Qwen-Image 2.1 VAE | |
| maskopt | MASK | Used as the alpha when the input image has no alpha channel (RGB input) | |
| alpha_thresholdopt | FLOAT | 0.100–1 | Alpha below this is treated as low-value noise and clipped to 0 (0 disables) |
| min_areaopt | INT | 1000–65536 | Drop isolated alpha islands smaller than this many pixels (0 disables) |
| featheropt | FLOAT | 2.00–32 | Width in pixels of the gradient band created inside the edge: fully transparent at the matte boundary, rising smoothly to fully opaque `feather` px inwards. The matte never grows outwards, so no pixel the generator left transparent can become visible (0 = hard edge) |
| invert_maskopt | BOOLEAN | false | Output 1 - alpha as the mask (white = transparent, the ComfyUI inpaint convention) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |