> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.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.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RandomCropImages/zh.md)

随机裁剪图像节点会从每个输入图像中随机选择一个矩形区域，并将其裁剪至指定的宽度和高度。这通常用于数据增强，以创建训练图像的变体。裁剪的随机位置由种子值决定，确保可以复现相同的裁剪结果。

## 输入参数

| 参数名      | 数据类型  | 必填 | 取值范围                     | 描述                    |
| -------- | ----- | -- | ------------------------ | --------------------- |
| `image`  | IMAGE | 是  | -                        | 待裁剪的图像。               |
| `width`  | INT   | 否  | 1 - 8192                 | 裁剪区域的宽度（默认值：512）。     |
| `height` | INT   | 否  | 1 - 8192                 | 裁剪区域的高度（默认值：512）。     |
| `seed`   | INT   | 否  | 0 - 18446744073709551615 | 用于控制裁剪随机位置的数字（默认值：0）。 |

**注意：** `width` 和 `height` 参数必须小于或等于输入图像的尺寸。如果指定的尺寸大于图像尺寸，裁剪将被限制在图像的边界内。

## 输出

| 输出名称    | 数据类型  | 描述            |
| ------- | ----- | ------------- |
| `image` | IMAGE | 应用随机裁剪后得到的图像。 |
