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

# ImageCropV2 - ComfyUI Built-in Node Documentation

> Complete documentation for the ImageCropV2 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/ImageCropV2/zh.md)

图像裁剪节点从输入图像中提取一个矩形区域。您可以通过指定其左上角坐标以及宽度和高度来定义要保留的区域。该节点随后会返回原始图像的裁剪部分。

## 输入参数

| 参数            | 数据类型        | 必填 | 取值范围 | 描述                                                                                                    |
| ------------- | ----------- | -- | ---- | ----------------------------------------------------------------------------------------------------- |
| `image`       | IMAGE       | 是  | 不适用  | 待裁剪的输入图像。                                                                                             |
| `crop_region` | BOUNDINGBOX | 是  | 不适用  | 定义要从图像中提取的矩形区域。它由 `x`（水平起始位置）、`y`（垂直起始位置）、`width`（宽度）和 `height`（高度）指定。如果定义的区域超出了图像的边界，它将自动调整以适应图像的尺寸。 |

**关于区域约束的说明：** 裁剪区域会自动被约束在输入图像的边界内。如果指定的 `x` 或 `y` 坐标大于图像的宽度或高度，它将被设置为最大有效位置。最终的裁剪宽度和高度将被调整，以确保区域不超过图像的边缘。

## 输出结果

| 输出名称    | 数据类型  | 描述           |
| ------- | ----- | ------------ |
| `image` | IMAGE | 原始输入图像的裁剪部分。 |
