Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images to specific resolution with flexibility in scaling options for AI artists, ensuring accurate and efficient resizing.
The ImageResolutionAdjust
node is designed to help you resize images to a specific resolution by either scaling them to a target width and height or by using a scaling factor. This node is particularly useful for AI artists who need to adjust the resolution of their images while maintaining the aspect ratio or fitting the image to a specific size. The node provides flexibility in how the image is resized, allowing you to choose between scaling by a factor or targeting specific dimensions. This ensures that your images are resized accurately and efficiently, making it easier to prepare images for various applications, such as training AI models or creating high-quality visual content.
This parameter represents the input image that you want to resize. The image should be provided in a format that the node can process, typically as a tensor or array.
This parameter determines the method used for scaling the image. The available options are "nearest-exact"
, "bilinear"
, "area"
, "bicubic"
, and "lanczos"
. Each method has its own characteristics: "nearest-exact"
is fast but may produce blocky results, "bilinear"
and "bicubic"
provide smoother results, "area"
is good for downscaling, and "lanczos"
offers high-quality results for both upscaling and downscaling.
This parameter specifies the target width of the resized image. It accepts integer values with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. If set to 0, the width will be automatically calculated based on the height to maintain the aspect ratio.
This parameter specifies the target height of the resized image. It accepts integer values with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. If set to 0, the height will be automatically calculated based on the width to maintain the aspect ratio.
This parameter determines how the image should be cropped if the aspect ratio changes during resizing. The available options are "disabled"
and "center"
. "disabled"
means no cropping will be applied, while "center"
will crop the image from the center to fit the target dimensions.
The output is the resized image, adjusted according to the specified parameters. The image will be returned in the same format as the input, typically as a tensor or array, with the new dimensions applied.
"lanczos"
upscale method for high-quality results, especially when both upscaling and downscaling images."center"
crop method to ensure the most important part of the image remains in focus.MAX_RESOLUTION
."nearest-exact"
, "bilinear"
, "area"
, "bicubic"
, or "lanczos"
.© Copyright 2024 RunComfy. All Rights Reserved.