Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images proportionally based on original dimensions using scaling factors for width and height, supporting various interpolation methods.
The ImageTransformResizeRelative
node is designed to resize images by scaling their width and height relative to their original dimensions. This node is particularly useful when you need to proportionally adjust the size of an image without specifying exact dimensions. By providing scaling factors for both width and height, you can easily enlarge or shrink images while maintaining their aspect ratio. This node supports various interpolation methods to ensure the resized image maintains high quality. It is an essential tool for AI artists looking to manipulate image sizes dynamically and efficiently.
This parameter expects a list of images that you want to resize. The images should be in a format that the node can process, typically tensors or arrays representing image data.
This parameter defines the scaling factor for the width of the image. It is a floating-point number with a default value of 1.0, meaning no change in width. You can adjust this value in steps of 0.1 to either increase or decrease the width of the image proportionally. For example, a value of 1.5 will increase the width by 50%, while a value of 0.5 will reduce it by half.
This parameter defines the scaling factor for the height of the image. Similar to scale_width
, it is a floating-point number with a default value of 1.0 and can be adjusted in steps of 0.1. This allows you to proportionally increase or decrease the height of the image. For instance, a value of 2.0 will double the height, while a value of 0.8 will reduce it to 80% of the original height.
This parameter specifies the interpolation method used for resizing the image. The available options are lanczos
, bicubic
, hamming
, bilinear
, box
, and nearest
. Each method has its own characteristics in terms of quality and performance. For example, lanczos
and bicubic
are known for high-quality results but may be slower, while nearest
is faster but may produce lower quality.
The output is a list of resized images. Each image in the list has been scaled according to the specified scale_width
and scale_height
parameters and resized using the chosen interpolation method
. The output images maintain the same format as the input images, ensuring compatibility with subsequent processing nodes.
scale_width
and scale_height
.scale_width
and scale_height
to fine-tune the size of your images without causing significant distortion.method
parameter is set to one of the following valid options: lanczos
, bicubic
, hamming
, bilinear
, box
, or nearest
.images
parameter is an empty list.images
parameter.© Copyright 2024 RunComfy. All Rights Reserved.