ComfyUI > Nodes > Bjornulf_custom_nodes > 📏 Resize Image

ComfyUI Node: 📏 Resize Image

Class Name

Bjornulf_ResizeImage

Category
Bjornulf
Author
justUmen (Account age: 3046days)
Extension
Bjornulf_custom_nodes
Latest Updated
2025-02-28
Github Stars
0.2K

How to Install Bjornulf_custom_nodes

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

Efficiently resize images with high-quality resampling, format conversion, batch processing, and metadata updates.

📏 Resize Image:

The Bjornulf_ResizeImage node is designed to efficiently resize images, making it an essential tool for AI artists who need to adjust image dimensions for various creative projects. This node takes an input image and resizes it to specified dimensions using a high-quality resampling method, ensuring that the resized image maintains as much detail and clarity as possible. By converting images to and from different formats, it seamlessly integrates with other processes in your workflow. The node is capable of handling both single images and batches, making it versatile for different use cases. Additionally, it updates metadata to reflect the new dimensions, which can be useful for tracking changes in image processing pipelines.

📏 Resize Image Input Parameters:

image

The image parameter is the primary input for the node, representing the image you wish to resize. It accepts images in a format compatible with the node's processing capabilities, typically as a tensor. This parameter is crucial as it determines the source material that will be resized. There are no specific minimum or maximum values for this parameter, but the image should be in a format that the node can process.

width

The width parameter specifies the desired width of the output image. It is an integer value that determines how wide the resized image will be. The default value is 256, but you can adjust it to any positive integer to fit your specific needs. This parameter directly impacts the aspect ratio and resolution of the final image.

height

The height parameter defines the desired height of the output image. Similar to the width parameter, it is an integer that sets the height of the resized image. The default value is 256, and it can be modified to any positive integer. Adjusting this parameter will affect the aspect ratio and resolution of the resized image.

📏 Resize Image Output Parameters:

IMAGE

The IMAGE output parameter is the resized image resulting from the node's processing. It is returned as a tensor, ready for further use in your workflow. This output is crucial as it provides the resized version of the input image, maintaining the specified dimensions and quality. The resized image can be used in subsequent nodes or exported for external use.

📏 Resize Image Usage Tips:

  • To maintain the original aspect ratio of an image, calculate the new dimensions proportionally based on either the width or height, and adjust the other dimension accordingly.
  • When working with a batch of images, ensure that all images are of the same initial dimensions to avoid inconsistencies in the resizing process.
  • Use the extra_pnginfo parameter to store additional metadata about the resizing process, which can be useful for documentation or debugging purposes.

📏 Resize Image Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is in a format that the node cannot process.
  • Solution: Convert the image to a supported format, such as a tensor, before inputting it into the node.

Dimension values are invalid

  • Explanation: The width or height parameters are set to non-positive values.
  • Solution: Ensure that both width and height are positive integers to allow proper resizing.

Batch size mismatch

  • Explanation: When processing a batch of images, the input images have varying dimensions.
  • Solution: Preprocess the images to ensure they all have the same initial dimensions before using the node.

📏 Resize Image Related Nodes

Go back to the extension to check out more related nodes.
Bjornulf_custom_nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.