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

# ResizeImagesByShorterEdge - ComfyUI Built-in Node Documentation

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

此节点用于调整图像大小，使较短边匹配指定长度，同时保持原始宽高比。它根据较短边的目标长度计算新尺寸，并返回调整后的图像。

## 输入

| 参数      | 描述                 | 数据类型  | 是否必填 | 范围       |
| ------- | ------------------ | ----- | ---- | -------- |
| `image` | 需要调整大小的输入图像。       | IMAGE | 是    | -        |
| `短边`    | 较短边的目标长度。（默认值：512） | INT   | 否    | 1 至 8192 |

## 输出

| 输出名称 | 描述                       | 数据类型  |
| ---- | ------------------------ | ----- |
| `图像` | 调整大小后的图像，其较短边与指定的目标长度匹配。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `011949390faa9032587aec210d9e38d55b79e474c7a6dcd5d3c0e75594a1fc29`
