Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Resize Images by Longer Edge node resizes one or more images so that their longest side matches a specified target length. It automatically determines whether the width or height is longer and scales the other dimension proportionally to preserve the original aspect ratio. This is useful for standardizing image sizes based on their largest dimension.

Inputs

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image or batch of images to be resized.
longer_edgeINTNo1 - 8192Target length for the longer edge. The shorter edge will be scaled proportionally. (default: 1024)

Outputs

Output NameData TypeDescription
imageIMAGEThe resized image or batch of images. The output will have the same number of images as the input, with each one’s longer edge matching the specified longer_edge length.