> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-feat-openapi-i18n.mintlify.site/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.

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

**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 | Description                                                 | Data Type |
| ----------- | ----------------------------------------------------------- | --------- |
| `image`     | The resulting image after the random crop has been applied. | IMAGE     |

> 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)

***

**Source fingerprint (SHA-256):** `8452a07a1cf66a520fb482f5239df3f33cfe3a77a28e289894ccd1d2544ecf40`
