Skip to main content
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

ParameterDescriptionData TypeRequiredRange
imageThe input image to be resized.IMAGEYes-
shorter_edgeTarget dimension for the shorter edge. (default: 512)INTYes1 to 8192

Outputs

Output NameDescriptionData Type
imageThe resized image with the shorter edge matching the specified target length.IMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 6bb3e1c974108ee7b75b47406ea02b3f47ca14305f9ee54d3d379eefbb7f26cd