> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageScaleToMaxDimension - ComfyUI Built-in Node Documentation

> ImageScaleToMaxDimension 节点用于将图像调整至指定的最大尺寸范围内，同时保持原始宽高比。

ImageScaleToMaxDimension 节点用于将图像调整至指定的最大尺寸范围内，同时保持原始宽高比。它会判断图像是竖屏还是横屏方向，然后将较大的尺寸缩放至目标大小，并按比例调整较小的尺寸。该节点支持多种放大方法，以满足不同的质量和性能需求。

## 输入

| 参数 | 描述 | 数据类型 | 是否必填 | 范围 |
| - | - | - | - | - |
| `图像` | 待缩放的输入图像 | IMAGE | 是 | - |
| `放大方法` | 用于缩放图像的插值方法（默认值："area"） | STRING | 是 | "area"<br />"lanczos"<br />"bilinear"<br />"nearest-exact"<br />"bilinear"<br />"bicubic" |
| `最大尺寸` | 缩放后图像的最大尺寸（默认值：512） | INT | 是 | 0 至 16384 |

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `图像` | 缩放后的图像，其最大尺寸与指定大小一致 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `be113c1a98ab9d884b2c728b790c41fb236857d59af567e43e2be0ef0362cc5e`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.