This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHubThe 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
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
image | IMAGE | Yes | N/A | The input image to be cropped. |
crop_region | BOUNDINGBOX | Yes | N/A | Defines 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. |
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 Name | Data Type | Description |
|---|---|---|
image | IMAGE | The cropped section of the original input image. |