ComfyUI Node
Image Crop By Mask And Resize (Multiple)
Crops an image/mask to the mask's bounding box (with optional padding and min/max size clamps), then resizes all batch items to a uniform resolution derived from base_resolution and the widest aspect ratio in the batch. Unlike the original node (which always rounds to a multiple of 16), this version exposes a `multiple` input so the final image, mask, and bbox dimensions are guaranteed divisible by whatever value you choose.
Image Crop By Mask And Resize (Multiple)
- image
- mask
- images
- masks
- bbox
◄base_resolution512►
◄padding0►
◄min_crop_resolution128►
◄max_crop_resolution512►
◄multiple16►
CategoryKJNodes/image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | — | |
| base_resolution | INT | 5120–16384 | — |
| padding | INT | 00–16384 | — |
| min_crop_resolution | INT | 1280–16384 | — |
| max_crop_resolution | INT | 5120–16384 | — |
| multiple | INT | 161–16384 | Forces output image/mask width & height (and bbox size) to be an exact multiple of this value. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| masks | MASK | — |
| bbox | BBOX | — |