> ## 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.

# RandomCropImages - ComfyUI Built-in Node Documentation

> Complete documentation for the RandomCropImages node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RandomCropImages/en.md)

The Random Crop Images node randomly selects a rectangular section from each input image and crops it to a specified width and height. This is commonly used for data augmentation to create variations of training images. The random position for the crop is determined by a seed value, ensuring the same crop can be reproduced.

## Inputs

| Parameter | Data Type | Required | Range                    | Description                                                            |
| --------- | --------- | -------- | ------------------------ | ---------------------------------------------------------------------- |
| `image`   | IMAGE     | Yes      | -                        | The image to be cropped.                                               |
| `width`   | INT       | No       | 1 - 8192                 | The width of the crop area (default: 512).                             |
| `height`  | INT       | No       | 1 - 8192                 | The height of the crop area (default: 512).                            |
| `seed`    | INT       | No       | 0 - 18446744073709551615 | A number used to control the random position of the crop (default: 0). |

**Note:** The `width` and `height` parameters must be less than or equal to the dimensions of the input image. If a specified dimension is larger than the image, the crop will be limited to the image's boundary.

## Outputs

| Output Name | Data Type | Description                                                 |
| ----------- | --------- | ----------------------------------------------------------- |
| `image`     | IMAGE     | The resulting image after the random crop has been applied. |
