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 Image Crop node extracts a rectangular section from an input image. You define the region to keep by specifying its top-left corner coordinates and its width and height. The node then returns the cropped portion of the original image.

Inputs

ParameterData TypeRequiredRangeDescription
imageIMAGEYesN/AThe input image to be cropped.
crop_regionBOUNDINGBOXYesN/ADefines the rectangular area to extract from the image. It is specified by x (horizontal start), y (vertical start), width, and height. If the defined region extends beyond the image’s borders, it will be automatically adjusted to fit within the image dimensions.
Note on Region Constraints: The crop region is automatically constrained to stay within the bounds of the input image. If the specified x or y coordinate is greater than the image’s width or height, it will be set to the maximum valid position. The resulting crop width and height will be adjusted so the region does not exceed the image’s edges.

Outputs

Output NameData TypeDescription
imageIMAGEThe cropped section of the original input image.