Visit ComfyUI Online for ready-to-use ComfyUI environment
Determines image resolution based on longer side for maintaining aspect ratio and visual quality.
The easy imageSizeByLongerSide
node is designed to help you determine the resolution of an image based on its longer side. This node is particularly useful when you need to resize or process images while maintaining their aspect ratio. By focusing on the longer side, you can ensure that the image's primary dimension is preserved, which is often crucial for maintaining visual quality and consistency. This node simplifies the process of identifying the longer side of an image, making it easier to apply subsequent transformations or adjustments.
The image
parameter expects an image input. This is the image whose longer side resolution you want to determine. The image should be provided in a format that the node can process, typically as an array or tensor representing the image data.
The side
parameter allows you to specify whether you want to determine the resolution of the "Longest" or "Shortest" side of the image. This parameter accepts two options: "Longest" and "Shortest". Choosing "Longest" will return the resolution of the longer side of the image, while choosing "Shortest" will return the resolution of the shorter side. This flexibility allows you to tailor the node's output to your specific needs.
The resolution
output parameter provides the resolution of the specified side (either "Longest" or "Shortest") of the image. This is an integer value representing the number of pixels along the chosen side. This output is crucial for tasks that require precise control over image dimensions, such as resizing or cropping.
side
parameter to quickly determine the longer side of an image when you need to resize it while maintaining the aspect ratio.side
parameter is set to a value other than "Longest" or "Shortest".side
parameter is set to either "Longest" or "Shortest". Correct any typos or invalid values in the parameter.© Copyright 2024 RunComfy. All Rights Reserved.