Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image dimensions for specific requirements, maintaining quality through resampling methods.
The Image Resize node is designed to adjust the dimensions of an image to meet specific requirements, whether for scaling up or down, or for fitting within a particular aspect ratio. This node is particularly useful for AI artists who need to prepare images for further processing, ensuring that the images are of the correct size and aspect ratio for their projects. By using various resampling methods, the node maintains the quality of the image while resizing, making it an essential tool for image manipulation and enhancement.
This parameter accepts the image that you want to resize. The image should be in a format that the node can process, typically a PIL Image object.
This parameter determines the resizing mode. It can be set to either scale
or rescale
. The scale
mode adjusts the image dimensions based on the specified width and height, while the rescale
mode scales the image by a given factor. The default value is scale
.
This parameter specifies whether to apply supersampling during the resizing process. Supersampling can help improve the quality of the resized image by reducing aliasing artifacts. It accepts a boolean value, with true
enabling supersampling and false
disabling it. The default value is true
.
This parameter is used in rescale
mode to determine the scaling factor. It multiplies the current dimensions of the image by this factor. The default value is 2.
This parameter specifies the target width of the image when using the scale
mode. The width should be a multiple of 8 to ensure proper resizing. If the provided width is not a multiple of 8, it will be adjusted accordingly. The default value is 1024.
This parameter specifies the target height of the image when using the scale
mode. Similar to the width, the height should be a multiple of 8. If the provided height is not a multiple of 8, it will be adjusted accordingly. The default value is 1024.
This parameter defines the resampling filter to use during the resizing process. Available options include nearest
, bilinear
, bicubic
, and lanczos
. Each filter offers different levels of quality and performance, with bicubic
being the default option for a good balance between quality and speed.
This parameter returns the resized image. The output image will have the dimensions specified by the input parameters and will be processed using the chosen resampling filter. The resized image is typically a PIL Image object.
lanczos
resampling filter and enable supersampling.bilinear
or bicubic
filters for a good balance between quality and performance.nearest
, bilinear
, bicubic
, or lanczos
.false
, so supersampling is not applied.true
if you want to enable supersampling for higher quality resizing.© Copyright 2024 RunComfy. All Rights Reserved.