Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Center Crop Images node crops an image from its center to a specified width and height. It calculates the central region of the input image and extracts a rectangular area of the defined dimensions. If the requested crop size is larger than the image, the crop will be constrained to the image’s boundaries.

Inputs

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image to be cropped.
widthINTNo1 to 8192The width of the crop area (default: 512).
heightINTNo1 to 8192The height of the crop area (default: 512).

Outputs

Output NameData TypeDescription
imageIMAGEThe resulting image after the center crop operation.