Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently resize images with flexibility, maintaining quality and supporting various resampling methods and upscaling options.
The D2 Image Resize node is designed to adjust the dimensions of images efficiently, providing flexibility in how images are scaled or resized. This node is particularly useful for AI artists who need to prepare images for various applications, ensuring that the images meet specific size requirements without losing quality. By leveraging the resizing capabilities from the WAS Node Suite, this node offers a robust solution for image manipulation, allowing you to either rescale images by a factor or resize them to specific dimensions. The node supports different resampling methods to maintain image quality and offers options for using advanced models for upscaling. Its primary goal is to provide a seamless and effective way to handle image resizing tasks, making it an essential tool for anyone working with digital images in creative projects.
This parameter represents the input image that you want to resize. It is the primary data that the node processes to produce a resized output.
The mode parameter determines the method of resizing. It can be set to either "rescale" or "resize". "Rescale" adjusts the image size by a specified factor, while "resize" changes the image to specific dimensions. This choice impacts how the image is processed and the final output size.
This parameter is used when the mode is set to "rescale". It defines the factor by which the image will be scaled. The default value is 2.0, with a minimum of 0.1 and a maximum of 16. This factor directly influences the size of the output image.
The preset parameter allows you to select predefined size settings for resizing. It provides a convenient way to apply common size configurations without manually entering dimensions.
This parameter specifies the target width for the image when the mode is set to "resize". The default value is 1024, with a range from 1 to 48000. It determines the width of the output image.
Similar to resize_width, this parameter sets the target height for the image when using the "resize" mode. The default is 1536, with a range from 1 to 48000, affecting the height of the resized image.
A boolean parameter that, when set to true, swaps the width and height of the image. This can be useful for changing the orientation of the image during the resizing process.
This parameter defines how the dimensions are rounded during resizing. Options include "Floor", "Round", "Ceil", and "None", with "Round" as the default. It affects the precision of the resized dimensions.
This parameter allows you to select an advanced model for upscaling the image. Options include "None" and any available models in the "upscale_models" directory. It enhances the quality of the resized image when upscaling.
The resampling parameter determines the method used for resizing the image. Options include "lanczos", "nearest", "bilinear", and "bicubic". This choice affects the quality and smoothness of the resized image.
A boolean parameter that, when enabled, uses a tiled approach for encoding the image with a VAE (Variational Autoencoder). This can be beneficial for handling large images or improving processing efficiency.
An optional parameter that allows you to provide a VAE model for encoding the image. This can be used to generate latent representations of the resized image.
The resized image output, which reflects the changes made based on the input parameters. It is the primary result of the node's processing.
The width of the resized image, providing information about the final dimensions after processing.
The height of the resized image, indicating the final dimensions after resizing.
The factor by which the image was rescaled, useful for understanding the degree of scaling applied.
A latent representation of the resized image, generated if a VAE model is used. This output can be used for further processing or analysis.
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.