Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently reduces image size while preserving quality and aspect ratio for various purposes using advanced scaling algorithms.
The ImageScaleDown
node is designed to reduce the size of images while maintaining their quality and aspect ratio. This node is particularly useful for AI artists who need to downscale images for various purposes, such as creating thumbnails, optimizing images for web use, or preparing images for further processing. By leveraging advanced scaling algorithms, the node ensures that the downscaled images retain as much detail and clarity as possible. The primary goal of this node is to provide a straightforward and efficient way to reduce image dimensions without compromising on visual quality.
This parameter accepts the images you want to downscale. The input should be in the form of an image tensor. The images will be processed to reduce their dimensions based on the specified scaling factor or target size.
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, a minimum of 0.01, and a maximum of 1.0. Adjusting this value will proportionally reduce the width and height of the images. For example, a scale_by
value of 0.5 will reduce the dimensions of the images by half.
This parameter specifies the target size for the downscaled images. It is an integer value with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION
. This parameter is used when you want to scale the images to a specific dimension rather than by a factor.
This boolean parameter determines whether the scaling should be based on the maximum or minimum dimension of the images. When set to True
(labelled as "max"), the scaling will be based on the larger dimension of the image. When set to False
(labelled as "min"), the scaling will be based on the smaller dimension. This helps in maintaining the aspect ratio while fitting the image within the specified size.
The output is the downscaled image tensor. This tensor contains the images resized according to the specified scaling factor or target size, ensuring that the images retain their aspect ratio and visual quality.
scale_by
parameter with a value between 0.01 and 1.0.size
parameter and set the mode
to either "max" or "min" based on your requirement.scale_by
parameter value is outside the allowed range (0.01 to 1.0).scale_by
value is within the specified range. Adjust the value to be between 0.01 and 1.0.size
parameter value is outside the allowed range (1 to MAX_RESOLUTION
).size
value is within the specified range. Adjust the value to be between 1 and the maximum resolution allowed.© Copyright 2024 RunComfy. All Rights Reserved.