ComfyUI > Nodes > ComfyUI 1hewNodes > Image Resize Universal

ComfyUI Node: Image Resize Universal

Class Name

1hew_ImageResizeUniversal

Category
1hewNodes/image/resize
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI 1hewNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 1hewNodes 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

Image Resize Universal Description

Versatile image resizing node for ComfyUI, maintaining quality and aspect ratio with various interpolation methods.

Image Resize Universal:

The 1hew_ImageResizeUniversal node is designed to provide a versatile and efficient solution for resizing images within the ComfyUI framework. This node is particularly beneficial for AI artists who need to adjust image dimensions while maintaining quality and aspect ratio. It offers a range of interpolation methods, allowing you to choose the most suitable one for your specific needs, whether you are looking for speed or quality. The node's primary goal is to facilitate the resizing of images to fit various dimensions or aspect ratios, making it an essential tool for preparing images for different outputs or further processing. By using this node, you can ensure that your images are resized accurately and efficiently, preserving the visual integrity of the original content.

Image Resize Universal Input Parameters:

method_mode

The method_mode parameter allows you to select the interpolation method used for resizing the image. This choice affects the quality and speed of the resizing process. Available options include nearest, bilinear, lanczos, bicubic, hamming, and box. Each method has its characteristics: nearest is fast but may produce blocky results, while bicubic and lanczos offer smoother transitions at the cost of increased computational time. Selecting the appropriate method depends on your specific requirements for image quality and processing speed.

scale_to_list

The scale_to_list parameter determines how the image should be scaled relative to its dimensions. Options include None, longest, shortest, width, height, and length_to_sq_area. This parameter helps you control the aspect ratio and size of the output image. For instance, choosing longest will scale the image so that its longest side matches the target size, preserving the aspect ratio. This flexibility allows you to tailor the resizing process to fit your project's needs, whether you are preparing images for display or further processing.

Image Resize Universal Output Parameters:

out_img

The out_img parameter represents the resized image output. This output is crucial as it provides the final image after the resizing operation, ready for use in subsequent processes or for display. The image is resized according to the specified parameters, ensuring that it meets the desired dimensions and quality standards.

out_msk

The out_msk parameter is a mask that indicates which parts of the original image were used in the resizing process. This mask is useful for understanding how the image was cropped or padded during resizing, providing insights into the transformation applied to the original image. It can be particularly helpful for tasks that require precise control over image regions, such as compositing or further image manipulation.

Image Resize Universal Usage Tips:

  • Experiment with different method_mode options to find the best balance between quality and performance for your specific use case.
  • Use the scale_to_list parameter to maintain the aspect ratio of your images, especially when preparing them for different display formats or resolutions.

Image Resize Universal Common Errors and Solutions:

Invalid interpolation method

  • Explanation: This error occurs when an unsupported interpolation method is selected in the method_mode parameter.
  • Solution: Ensure that you select one of the supported methods: nearest, bilinear, lanczos, bicubic, hamming, or box.

Image dimensions not specified

  • Explanation: This error arises when the target dimensions for resizing are not provided or are set incorrectly.
  • Solution: Verify that you have specified valid target dimensions and that they are compatible with the selected scaling option in scale_to_list.

Image Resize Universal Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI 1hewNodes
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.

Image Resize Universal