ComfyUI > Nodes > ComfyUI-tbox > Image Resize

ComfyUI Node: Image Resize

Class Name

ImageResize

Category
tbox/Image
Author
ai-shizuka (Account age: 3606days)
Extension
ComfyUI-tbox
Latest Updated
2025-04-22
Github Stars
0.02K

How to Install ComfyUI-tbox

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

ImageResize node adjusts image dimensions using various interpolation methods for quality scaling.

Image Resize:

The ImageResize node is designed to adjust the dimensions of an image using various interpolation methods, allowing you to scale images up or down while maintaining quality. This node is particularly useful for AI artists who need to prepare images for different applications, ensuring that the images fit specific size requirements without losing detail. By offering multiple resizing methods, such as nearest, bilinear, bicubic, area, nearest-exact, and lanczos, the node provides flexibility in how the image is processed, catering to different needs for speed and quality. Whether you are looking to enlarge an image for a detailed view or shrink it for a thumbnail, the ImageResize node offers a straightforward solution to achieve the desired size with minimal effort.

Image Resize Input Parameters:

image

The image parameter is the primary input for the node, representing the image you wish to resize. This parameter is essential as it provides the source material that will be processed and resized according to the specified dimensions and method. The image should be in a compatible format that the node can process.

method

The method parameter determines the interpolation technique used during the resizing process. It offers several options: nearest, bilinear, bicubic, area, nearest-exact, and lanczos. Each method has its characteristics; for instance, nearest is fast but may produce blocky results, while lanczos offers high-quality results at the cost of processing time. Choosing the right method depends on the balance between quality and performance you wish to achieve.

width

The width parameter specifies the target width for the resized image. It can be an integer or a float, with a default value of 0.0, which indicates that the width should be automatically calculated to maintain the aspect ratio if the height is specified. Adjusting the width allows you to control the horizontal dimension of the output image, ensuring it meets specific requirements.

height

The height parameter defines the target height for the resized image. Similar to the width, it can be an integer or a float, with a default value of 0.0. If the width is specified and the height is set to 0, the node will calculate the height to preserve the aspect ratio. This parameter is crucial for controlling the vertical dimension of the image.

Image Resize Output Parameters:

IMAGE

The output parameter IMAGE represents the resized image. This output is the result of applying the specified resizing method and dimensions to the input image. The resized image maintains the quality and characteristics defined by the chosen interpolation method, providing a ready-to-use image that fits the desired size specifications.

Image Resize Usage Tips:

  • To maintain the aspect ratio of the image, specify either the width or the height, leaving the other dimension set to 0. This allows the node to automatically calculate the missing dimension.
  • Experiment with different interpolation methods to find the best balance between processing speed and image quality for your specific use case.

Image Resize Common Errors and Solutions:

Invalid image format

  • Explanation: The input image is not in a compatible format that the node can process.
  • Solution: Ensure that the image is in a supported format, such as JPEG or PNG, before inputting it into the node.

Dimension calculation error

  • Explanation: Both width and height are set to 0, leading to an inability to calculate the target dimensions.
  • Solution: Specify at least one dimension (either width or height) to allow the node to calculate the other dimension while maintaining the aspect ratio.

Image Resize Related Nodes

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