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

# CenterCropImages - ComfyUI Built-in Node Documentation

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

Center Crop Images 节点将图像从中心裁剪至指定的宽度和高度。它会计算输入图像的中心区域，并提取出指定尺寸的矩形区域。如果请求的裁剪尺寸大于图像本身，裁剪区域将被限制在图像的边界内。

## 输入参数

| 参数名      | 数据类型  | 必填 | 取值范围     | 描述                |
| -------- | ----- | -- | -------- | ----------------- |
| `image`  | IMAGE | 是  | -        | 待裁剪的输入图像。         |
| `width`  | INT   | 否  | 1 至 8192 | 裁剪区域的宽度（默认值：512）。 |
| `height` | INT   | 否  | 1 至 8192 | 裁剪区域的高度（默认值：512）。 |

## 输出结果

| 输出名称    | 数据类型  | 描述              |
| ------- | ----- | --------------- |
| `image` | IMAGE | 经过中心裁剪操作后得到的图像。 |
