Skip to main content

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.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This node resizes images so that the shorter edge matches a specified length while preserving the original aspect ratio. It calculates new dimensions based on the target length for the shorter side and returns the resized image.

Inputs

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image to be resized.
shorter_edgeINTYes1 to 8192Target dimension for the shorter edge. (default: 512)

Outputs

Output NameData TypeDescription
imageIMAGEThe resized image with the shorter edge matching the specified target length.

Source fingerprint (SHA-256): 6bb3e1c974108ee7b75b47406ea02b3f47ca14305f9ee54d3d379eefbb7f26cd