Skip to main content
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 node is deprecated and superseded by the Resize Image/Mask node with the resize type set to “scale longer dimension”.

Inputs

ParameterDescriptionData TypeRequiredRange
imageThe input image or batch of images to be resized.IMAGEYes-
longer_edgeTarget dimension for the longer edge. The shorter edge will be scaled proportionally. (default: 1024)INTYes1 - 8192

Outputs

Output NameDescriptionData Type
imageThe 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.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): bf66808acbc654d5a9ea58b062b5b89d6c13dbec0929d6d92aaa3c8914dcece0