ComfyUI > Nodes > ComfyUI-UniversalToolkit > Resize Image ver KJ (UTK)

ComfyUI Node: Resize Image ver KJ (UTK)

Class Name

ResizeImageVerKJ_UTK

Category
UniversalToolkit/Image
Author
whmc76 (Account age: 1110days)
Extension
ComfyUI-UniversalToolkit
Latest Updated
2026-03-16
Github Stars
0.07K

How to Install ComfyUI-UniversalToolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-UniversalToolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-UniversalToolkit in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Resize Image ver KJ (UTK) Description

The node offers versatile image resizing with methods like cropping, padding, and upscale techniques.

Resize Image ver KJ (UTK):

The ResizeImageVerKJ_UTK node is designed to provide flexible and efficient image resizing capabilities within the ComfyUI-UniversalToolkit. This node allows you to resize images while maintaining or altering their proportions based on various methods, such as cropping, padding, or using specific upscale techniques. It is particularly beneficial for AI artists who need to adjust image dimensions without compromising quality or aspect ratio. The node supports multiple resizing strategies, including padding with edge pixels or blurring, ensuring that the resized images meet specific requirements or aesthetic preferences. By offering a range of options for resizing, this node empowers you to tailor the output to your creative needs, making it an essential tool for image manipulation tasks.

Resize Image ver KJ (UTK) Input Parameters:

keep_proportion

The keep_proportion parameter determines how the image's aspect ratio is handled during resizing. Options include "resize" for direct resizing without maintaining proportions, "total_pixels" to adjust based on a total pixel count, "pad" to add padding while maintaining the aspect ratio, "pad_edge" and "pad_edge_pixel" to extend the image using edge pixels, and "pillarbox_blur" to add blurred padding. This parameter significantly impacts the final appearance of the resized image, allowing you to choose the method that best suits your artistic vision.

divisible_by

The divisible_by parameter ensures that the final dimensions of the resized image are divisible by a specified number. This is particularly useful for maintaining compatibility with certain processing requirements or ensuring uniformity across a batch of images. By adjusting the width and height to be divisible by this value, you can avoid potential issues with downstream processing or display.

upscale_method

The upscale_method parameter specifies the algorithm used for resizing the image. Options include "lanczos," "bicubic," "hamming," "bilinear," "box," and "nearest," each offering different levels of quality and processing speed. Choosing the right method can affect the sharpness and clarity of the resized image, with some methods being more suitable for preserving details while others may prioritize speed.

crop_position

The crop_position parameter is used when the keep_proportion is set to "crop." It defines the position from which the image should be cropped before resizing. This allows you to focus on a specific area of the image, ensuring that the most important parts are retained in the final output. The choice of crop position can influence the composition and focus of the resized image.

Resize Image ver KJ (UTK) Output Parameters:

out_img

The out_img parameter is the primary output of the node, representing the resized image. This output is crucial as it reflects the application of the chosen resizing method and parameters, providing you with an image that meets your specified dimensions and aesthetic requirements.

out_m

The out_m parameter is an optional output that provides a resized mask if a mask was used during the resizing process. This is important for maintaining the alignment and integrity of masked areas in the image, ensuring that any subsequent processing or analysis can be accurately applied to the intended regions.

Resize Image ver KJ (UTK) Usage Tips:

  • Experiment with different keep_proportion settings to achieve the desired balance between maintaining aspect ratio and fitting specific dimensions.
  • Use the divisible_by parameter to ensure compatibility with other tools or processes that require specific image dimensions.
  • Select an upscale_method that matches your quality and performance needs, with "lanczos" often providing high-quality results for detailed images.

Resize Image ver KJ (UTK) Common Errors and Solutions:

Image dimensions not divisible by specified value

  • Explanation: The final image dimensions are not divisible by the divisible_by parameter.
  • Solution: Adjust the divisible_by parameter to a value that aligns with your desired dimensions or modify the target dimensions to be compatible.

Unexpected aspect ratio changes

  • Explanation: The image's aspect ratio does not match expectations after resizing.
  • Solution: Review the keep_proportion setting to ensure it aligns with your intended aspect ratio handling, and adjust as necessary.

Blurry or pixelated output

  • Explanation: The resized image appears blurry or pixelated.
  • Solution: Try using a different upscale_method, such as "lanczos" or "bicubic," to improve the quality of the resized image.

Resize Image ver KJ (UTK) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-UniversalToolkit
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Resize Image ver KJ (UTK)