Nodes/ComfyUi-MpiNodes/Mpi Box Crop
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.

By MadPonyInteractive·Created 10 months ago·Updated 3 days ago· 2
Mpi Box Crop
  • image
  • mpi_box
  • image
  • mpi_box
padfalse
CategoryMpiNodes/ImgOps

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
mpi_boxMPI_BOX
padoptBOOLEANfalsePad 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)

NameTypeDescription
imageIMAGE
mpi_boxMPI_BOX