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

# FluxKontextImageScale - ComfyUI Built-in Node Documentation

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

此节点根据输入图像的宽高比，使用 Lanczos 算法将输入图像缩放至 Flux Kontext 模型训练时使用的最佳尺寸。当输入大尺寸图像时，此节点尤为有用，因为过大的输入可能导致模型输出质量下降或出现输出中包含多个主体等问题。

## 输入

| 参数名  | 描述         | 数据类型  | 输入类型 | 默认值 | 取值范围 |
| ---- | ---------- | ----- | ---- | --- | ---- |
| `图像` | 待调整尺寸的输入图像 | IMAGE | 必需   | -   | -    |

## 输出

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

## 预设尺寸列表

以下是模型训练过程中使用的标准尺寸列表。节点将选择与输入图像宽高比最接近的尺寸：

| 宽度   | 高度   | 宽高比   |
| ---- | ---- | ----- |
| 672  | 1568 | 0.429 |
| 688  | 1504 | 0.457 |
| 720  | 1456 | 0.494 |
| 752  | 1392 | 0.540 |
| 800  | 1328 | 0.603 |
| 832  | 1248 | 0.667 |
| 880  | 1184 | 0.743 |
| 944  | 1104 | 0.855 |
| 1024 | 1024 | 1.000 |
| 1104 | 944  | 1.170 |
| 1184 | 880  | 1.345 |
| 1248 | 832  | 1.500 |
| 1328 | 800  | 1.660 |
| 1392 | 752  | 1.851 |
| 1456 | 720  | 2.022 |
| 1504 | 688  | 2.186 |
| 1568 | 672  | 2.333 |

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