ComfyUI Node
Mask Crop By Percentage
A ComfyUI node in Image Resizing/Resizing with 11 inputs and 4 outputs.
Mask Crop By Percentage
- image
- mask
- crop_box
- cropped_image
- cropped_mask
- crop_box
- box_preview
◄invert_maskfalse►
◄use_pixelfalse►
◄detect▾►
◄top0►
◄bottom0►
◄left0►
◄right0►
◄round_to_multiple▾►
CategoryImage Resizing/Resizing
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| invert_mask | BOOLEAN | false | — |
| use_pixel | BOOLEAN | false | — |
| detect | COMBO | 4 options: mask_area, min_bounding_rect, max_inscribed_rect, crop_each_region | |
| top | INT | 00–9999 | — |
| bottom | INT | 00–9999 | — |
| left | INT | 00–9999 | — |
| right | INT | 00–9999 | — |
| round_to_multiple | COMBO | 8 options: 8, 16, 32, 64, 128, 256, +2 | |
| crop_boxopt | BOX | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| cropped_image | IMAGE | — |
| cropped_mask | MASK | — |
| crop_box | BOX | — |
| box_preview | IMAGE | — |