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.

By MadPonyInteractive·Created 10 months ago·Updated 3 days ago· 2
Mpi Crop
  • image
  • image
  • width
  • height
width0
height0
divisible_by1
position
CategoryMpiNodes/ImgOps

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
widthINT00–4294967295Target crop width. 0 = keep full width (only divisible-by trim applies).
heightINT00–4294967295Target crop height. 0 = keep full height (only divisible-by trim applies).
divisible_byINT11–256Final crop size is floored to a multiple of this.
positionCOMBO5 options: center, left, right, top, bottom

Outputs (3)

NameTypeDescription
imageIMAGE
widthINT
heightINT