ComfyUI Node
Batch Crop and Pad From Mask
A ComfyUI node in grounding with 7 inputs and 3 outputs.
Batch Crop and Pad From Mask
- images
- masks
- cropped_images
- cropped_masks
- crop_info
◄padding_modeconstant►
◄padding_color_r255►
◄padding_color_g255►
◄padding_color_b255►
◄crop_size_mult1.0►
Categorygrounding
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| masks | MASK | — | |
| padding_mode | COMBO | constant | constant: use custom color | edge: replicate edges | reflect: mirror content |
| padding_color_ropt | INT | 2550–255 | Red channel for constant padding (0-255) |
| padding_color_gopt | INT | 2550–255 | Green channel for constant padding (0-255) |
| padding_color_bopt | INT | 2550–255 | Blue channel for constant padding (0-255) |
| crop_size_multopt | FLOAT | 1.00.1–5 | Multiplier for crop size (>1.0 includes more context) |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| cropped_images | IMAGE | — |
| cropped_masks | MASK | — |
| crop_info | STRING | — |