Skip to main content
This node scales the input image to an optimal size used during Flux Kontext model training using the Lanczos algorithm, based on the input image’s aspect ratio. This node is particularly useful when inputting large-sized images, as oversized inputs may lead to degraded model output quality or issues such as multiple subjects appearing in the output.

Inputs

Outputs

Preset Size List

The following is a list of standard sizes used during model training. The node will select the size closest to the input image’s aspect ratio:
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub