Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images with quality preservation, offering flexible sizing modes and interpolation methods for efficient scaling.
The scale
function is designed to resize images to a desired size while maintaining the quality and integrity of the original image. It offers flexibility in terms of resizing modes, allowing you to choose between balanced, larger, or smaller sizing modes. This node is particularly beneficial for artists and designers who need to adjust image dimensions without compromising on quality. By utilizing different interpolation methods, such as bilinear scaling, the node ensures that the resized image retains its visual appeal. The primary goal of this node is to provide a seamless and efficient way to scale images according to specific requirements, making it an essential tool for image processing tasks.
This parameter represents the input image that you want to scale. It is crucial as it serves as the base for the scaling operation. The image should be in a format compatible with the node's processing capabilities.
This parameter specifies the target size for the scaling operation. It determines the final dimensions of the output image. The value should be an integer representing the desired size in pixels.
The sizing mode parameter allows you to choose how the image should be resized. Options include "balanced," "larger," and "smaller." The "balanced" mode maintains the aspect ratio, while "larger" and "smaller" modes adjust the image size based on the minimum or maximum dimension, respectively. The default mode is "balanced."
This parameter defines the interpolation method used during scaling. Options include various interpolation techniques, with "bilinear" being the default. The choice of interpolation affects the smoothness and quality of the resized image.
The output parameter is the scaled image, which is the result of the resizing operation. This image retains the visual characteristics of the input image but is adjusted to the specified size. The output is crucial for further processing or use in design projects.
<sizing_mode>
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.