ComfyUI Node
Mpi Crop
Crop an image to width/height at a chosen anchor. width/height of 0 keep that dimension full. The final crop is floored to a multiple of divisible_by, so with width=height=0 it just trims to a divisible size.
Mpi Crop
- image
- image
- width
- height
◄width0►
◄height0►
◄divisible_by1►
◄position▾►
CategoryMpiNodes/ImgOps
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 00–4294967295 | Target crop width. 0 = keep full width (only divisible-by trim applies). |
| height | INT | 00–4294967295 | Target crop height. 0 = keep full height (only divisible-by trim applies). |
| divisible_by | INT | 11–256 | Final crop size is floored to a multiple of this. |
| position | COMBO | 5 options: center, left, right, top, bottom |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| width | INT | — |
| height | INT | — |