EasyUse/Imagegenerated
ImageSize (LongerSide)(imageSizeByLongerSide)
ImageSize (LongerSide) node from ComfyUI-Easy-Use.
image Size By Longer Side
image
resolution
Easy Use
The ImageSize (LongerSide) node returns the length of the longer edge of an input image as an integer. It provides a convenient way to obtain the dominant dimension without separately comparing width and height, and is useful for calculations such as proportional resizing, aspect-ratio preservation, or conditioning on image scale.
Inputs
image
- Type:
IMAGE(required) - The image whose longer side will be measured.
Outputs
INT
- The longer side of the image, computed as
max(width, height).
Usage Notes
- The node returns a single integer, making it easy to chain into arithmetic, math, or conditioning nodes.
- Use it whenever you need only the larger of the image’s two dimensions, rather than both width and height separately.
Comments
Sign in with GitHub to join the discussion.