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

# ResizeImagesByShorterEdge - ComfyUI Built-in Node Documentation

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

此节点通过调整图像尺寸，使较短边的长度与指定的目标值匹配，从而实现图像缩放。它会计算新的尺寸以保持原始图像的宽高比，并返回缩放后的图像。

## 输入参数

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

## 输出结果

| 输出名称    | 数据类型  | 描述        |
| ------- | ----- | --------- |
| `image` | IMAGE | 调整尺寸后的图像。 |
