> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 图像缩放为FluxKontext（FluxKontextImageScale）

<div class="node-meta"><code>FluxKontextImageScale</code><span>model/conditioning/flux</span><span>角色：图像处理</span></div>

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

## 参数

| 参数      | 类型         | 默认 / 范围 | 说明                     |
| ------- | ---------- | ------- | ---------------------- |
| `image` | IMAGE · 图像 | —（连线输入） | RGB 图像输入；尺寸不一致会被缩放或裁切。 |

## 输出

| 输出    | 类型    | 说明 |
| ----- | ----- | -- |
| IMAGE | IMAGE | 图像 |

## 怎么接

- **上游**：LoadImage / VAEDecode
- **下游**：VAEEncode / SaveImage / 下一个图像节点
- **接线**：接在 LoadImage 或 VAEDecode 之后，处理结果再交给 VAEEncode（重绘）、SaveImage（出图）或下一个图像节点；这类节点可以任意串联成处理流水线。

## 使用案例

属于「图像处理」类节点，向下游提供图像数据。从 `image` 开始填就能跑起来。典型接法：`LoadImage` → 本节点 → `VAEEncode`。输出类型是 IMAGE，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![FluxKontextImageScale 端口与连线示意](/svg/FluxKontextImageScale.svg)

## 同类节点

[ClipTextEncodeFlux](/nodes/03/CLIPTextEncodeFlux.md) · [Flux引导](/nodes/03/FluxGuidance.md) · [Flux 布局提示词](/nodes/03/Flux3LayoutPrompt.md) · [Flux禁用指导](/nodes/03/FluxDisableGuidance.md) · [FluxKontext多参考潜在方法](/nodes/03/FluxKontextMultiReferenceLatentMethod.md)
