Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for reducing image size by scale factor, supporting various downscaling methods for quality maintenance.
The easy imageScaleDownBy
node is designed to help you reduce the size of an image by a specified scale factor. This node is particularly useful when you need to downscale images for various purposes, such as reducing file size, preparing images for web use, or creating thumbnails. By providing a straightforward method to downscale images, this node ensures that you can maintain the quality of your images while achieving the desired size reduction. The node supports multiple downscaling methods, allowing you to choose the one that best suits your needs.
This parameter represents the input image that you want to downscale. The image should be in a format that the node can process, typically an IMAGE
type.
This parameter allows you to select the method used for downscaling the image. The available options are nearest-exact
, bilinear
, area
, bicubic
, and lanczos
. Each method has its own characteristics and can affect the quality and appearance of the downscaled image. For example, bicubic
and lanczos
methods generally provide higher quality results but may be slower, while nearest-exact
and bilinear
are faster but may result in lower quality.
This parameter specifies the factor by which the image should be downscaled. It is a floating-point value with a default of 1.0, a minimum of 0.01, and a maximum of 8.0. A value of 1.0 means no scaling, while values less than 1.0 will reduce the image size. For example, a scale_by
value of 0.5 will reduce the image dimensions by half.
The output parameter is the downscaled image. This image will have its dimensions reduced according to the specified scale_by
factor and the chosen downscale_method
. The output image retains the quality as much as possible based on the selected method and scaling factor.
bicubic
or lanczos
methods, especially for images with fine details.nearest-exact
or bilinear
methods can be faster options.scale_by
values to find the optimal size reduction for your specific use case. For example, a scale_by
value of 0.5 is a good starting point for reducing image size by half.scale_by
value is outside the allowed range of 0.01 to 8.0.scale_by
value to be within the specified range.downscale_method
is not one of the supported options.nearest-exact
, bilinear
, area
, bicubic
, or lanczos
.© Copyright 2024 RunComfy. All Rights Reserved.