Visit ComfyUI Online for ready-to-use ComfyUI environment
Determine image resolution based on longest or shortest side for flexible image processing.
The easy imageSizeBySide
node is designed to help you determine the resolution of an image based on either its longest or shortest side. This node is particularly useful when you need to resize or process images while maintaining their aspect ratio. By providing the option to choose between the longest and shortest side, it offers flexibility in handling images of various dimensions, ensuring that you can easily obtain the desired resolution for your creative projects.
This parameter expects an image input. The image should be in a format that the node can process, typically a tensor or array representing the image data. The image parameter is crucial as it provides the raw data from which the node will calculate the resolution based on the specified side.
This parameter allows you to choose between "Longest" and "Shortest" side of the image. Selecting "Longest" will return the resolution of the image's longest side, while selecting "Shortest" will return the resolution of the image's shortest side. This choice impacts the output resolution and is essential for tasks where maintaining a specific aspect ratio or dimension is important. The available options are:
This output parameter provides the resolution of the specified side (either longest or shortest) of the image. The resolution is returned as an integer value, representing the number of pixels along the chosen side. This output is useful for further image processing tasks where specific dimensions are required.
© Copyright 2024 RunComfy. All Rights Reserved.