Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently reduce image size while maintaining aspect ratio using specified scaling factor for optimization and downsizing tasks.
The ImageScaleDownBy
node is designed to reduce the size of images by a specified scaling factor. This node is particularly useful when you need to downscale images while maintaining their aspect ratio. By providing a simple and efficient way to scale down images, it helps in optimizing image processing tasks, reducing file sizes, and preparing images for various applications where smaller dimensions are required. The node leverages a scaling factor to determine the new dimensions of the image, ensuring that the downscaling process is both precise and easy to control.
This parameter accepts the image or batch of images that you want to scale down. The images should be in a format that the node can process, typically a tensor format. The input images are the primary data that will be resized based on the scaling factor provided.
This parameter determines the factor by which the images will be scaled down. It is a floating-point value with a default of 0.5, meaning the image dimensions will be halved by default. The minimum value is 0.01, allowing for very fine scaling, and the maximum value is 1.0, which means no scaling down. Adjusting this parameter will directly affect the new dimensions of the image, making it smaller by the specified factor.
The output is the scaled-down image or batch of images. The dimensions of the output images are determined by the scale_by
parameter, ensuring that the aspect ratio is maintained while reducing the overall size. This output can be used in subsequent image processing tasks or saved for later use.
scale_by
parameter accordingly. For example, setting scale_by
to 0.25 will reduce the image dimensions to a quarter of their original size.scale_by
parameter is set to a value outside the allowed range (0.01 to 1.0).scale_by
parameter to be within the valid range.scale_by
parameter to ensure the output dimensions are sufficient for further processing.© Copyright 2024 RunComfy. All Rights Reserved.