Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

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.
widthINTYes1 to 8192The width of the crop area (default: 512).
heightINTYes1 to 8192The height of the crop area (default: 512).

Outputs

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

Source fingerprint (SHA-256): 1b22529602e3aca816b583158c4bb5aa51de3478ac8068c2a69a3392fb12746f