Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images with aspect ratio control and upscale options for AI artists' specific size requirements.
The ImageResizeKJ node is designed to resize images to specified dimensions while offering flexibility in maintaining aspect ratios and choosing upscale methods. 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 distorting their proportions. By leveraging different upscale methods, the node provides high-quality resizing options that can cater to different artistic needs, whether it's for creating thumbnails, preparing images for further processing, or simply adjusting the size for better visualization.
This parameter accepts the image that you want to resize. The image should be in a format compatible with the node's processing capabilities.
This parameter specifies the target width for the resized image. If set to 0, the original width of the image is maintained. The default value is 512, with a minimum of 0 and a maximum defined by the system's maximum resolution.
This parameter specifies the target height for the resized image. If set to 0, the original height of the image is maintained. The default value is 512, with a minimum of 0 and a maximum defined by the system's maximum resolution.
This parameter allows you to choose the method used for resizing the image. Options include "nearest-exact", "bilinear", "area", "bicubic", and "lanczos". Each method offers different qualities of resizing, with "nearest-exact" being the simplest and "lanczos" providing the highest quality.
This boolean parameter determines whether the aspect ratio of the image should be maintained during resizing. If set to True, the image will be resized proportionally based on the highest dimension. The default value is False.
This parameter ensures that the final dimensions of the resized image are divisible by the specified value. This can be useful for certain applications that require image dimensions to be multiples of a specific number. The default value is 2, with a minimum of 0 and a maximum of 512.
This optional parameter allows you to input a specific width for the resized image, overriding the width parameter if provided.
This optional parameter allows you to input a specific height for the resized image, overriding the height parameter if provided.
This optional parameter can be used to retrieve the size of the image from another source, which will then be used to determine the final dimensions of the resized image.
The resized image, adjusted according to the specified width, height, and other parameters. This output is ready for further processing or use in your projects.
The final width of the resized image. This value reflects any adjustments made to maintain aspect ratio or meet the divisibility requirement.
The final height of the resized image. This value reflects any adjustments made to maintain aspect ratio or meet the divisibility requirement.
keep_proportion
parameter to True. This ensures that the image does not get distorted during resizing.upscale_method
options to find the best quality for your specific use case. For example, "lanczos" often provides the best quality for artistic images.divisible_by
parameter to ensure that your image dimensions are compatible with other tools or processes that require specific dimension multiples.divisible_by
parameter.divisible_by
parameter to a value that allows the final dimensions to be divisible, or modify the target width and height accordingly.© Copyright 2024 RunComfy. All Rights Reserved.