ComfyUI Node
Cut Out π
Turns a picture and a mask into a cut-out with a see-through background, ready to save as a PNG or lay on a new background. Keep the white or the black part of the mask, grow or shrink it and soften its edge. Clean edges takes the old background's colour out of hair and soft edges, so the cut-out has no halo on a new background; pixels that are fully kept stay exactly as they were. Works on video frames too.
Cut Out π
- image
- mask
- image
- alpha
βkeepwhiteβΊ
βgrow0βΊ
βfeather1.0βΊ
βclean_edgestrueβΊ
βclear_haze0.00βΊ
βsolid_above1.00βΊ
βsmooth_frames0βΊ
βpreviewtrueβΊ
Categoryπ AusBoss/Image
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The picture or video frames to cut out. | |
| mask | MASK | What to keep. One mask can serve every frame of a video. | |
| keep | COMBO | white | Keep the part under the white of the mask, or under the black. |
| grow | INT | 0-256β256 | Grow the kept part by this many pixels, or shrink it with a negative number. |
| feather | FLOAT | 1.00β256 | How soft the edge is, in pixels. 0 keeps the mask's own edge. |
| clean_edges | BOOLEAN | true | Take the old background's colour out of soft edges and hair, so the cut-out has no halo on a new background. |
| clear_haze | FLOAT | 0.000β1 | Parts this see-through or more become fully clear. Raise it a little to clear a faint haze around the cut-out. |
| solid_above | FLOAT | 1.000β1 | Parts at least this solid become fully solid. Lower it a little to fill thin see-through spots inside the subject. |
| smooth_frames | INT | 00β8 | For a video: blend each frame's edge with this many frames before and after it, which calms a flickering edge. 0 is off. |
| previewopt | BOOLEAN | true | Show the cut-out on its face, over a checkerboard. Off skips writing the preview file to ComfyUI's temp folder. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The cut-out with a see-through background (RGBA). Save Image keeps the transparency in a PNG. |
| alpha | MASK | How solid each pixel of the cut-out is: white is kept, black is clear. |