ComfyUI Node
Mpi Box Crop
Crop an image to an MPI_BOX region. The box is clamped to the image; a box fully outside the image passes the image through unchanged. Also outputs the clamped box, so downstream nodes see the region actually used. With pad on, an overhanging box is padded back out to its requested size by edge replication, so the crop keeps the aspect that was asked for - which is what a square reference crop needs.
Mpi Box Crop
- image
- mpi_box
- image
- mpi_box
◄padfalse►
CategoryMpiNodes/ImgOps
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mpi_box | MPI_BOX | — | |
| padopt | BOOLEAN | false | Pad the crop back out to the requested box size when the box overhangs the image, replicating the edge pixels. Off, the crop is just the intersection. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mpi_box | MPI_BOX | — |