Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PainterNodes > Painter Resize Images

ComfyUI Node: Painter Resize Images

Class Name

PainterResizeImages

Category
Painter/Utils
Author
princepainter (Account age: 1255days)
Extension
ComfyUI-PainterNodes
Latest Updated
2026-07-14
Github Stars
0.14K

How to Install ComfyUI-PainterNodes

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

Painter Resize Images Description

Resize images while maintaining aspect ratio, focusing on longest edge adjustment for standardization without distortion.

Painter Resize Images:

The PainterResizeImages node is designed to resize images while maintaining their aspect ratio, focusing on adjusting the image's longest edge to a specified size. This node is particularly useful for artists and designers who need to standardize image dimensions without distorting the original proportions. By leveraging advanced interpolation techniques, it ensures that the resized images retain high quality and clarity. This functionality is essential for preparing images for various applications, such as digital art projects, where consistent image sizes are crucial for seamless integration and presentation.

Painter Resize Images Input Parameters:

images

The images parameter expects an input of type IMAGE, which represents the image data to be resized. This parameter is crucial as it provides the node with the visual content that needs to be adjusted in size. The input image should be in a format that the node can process, typically a tensor with dimensions corresponding to batch size, height, width, and color channels.

long_edge

The long_edge parameter is an integer that specifies the desired length of the longest edge of the resized image. This parameter allows you to control the final size of the image while maintaining its aspect ratio. The long_edge can range from a minimum of 1 to a maximum of 8192, with a default value of 1024. Adjusting this parameter impacts the scale of the output image, making it larger or smaller depending on the specified value.

Painter Resize Images Output Parameters:

image

The image output is the resized version of the input image, adjusted according to the specified long_edge while preserving the original aspect ratio. This output is crucial for ensuring that the image fits the desired dimensions without distortion, making it suitable for further processing or display.

width

The width output provides the width of the resized image. This value is determined based on the aspect ratio and the specified long_edge, offering insight into the new dimensions of the image after resizing.

height

The height output indicates the height of the resized image. Similar to the width, this value is calculated to maintain the aspect ratio, ensuring that the image's proportions remain consistent with the original.

Painter Resize Images Usage Tips:

  • To maintain the quality of your images, choose a long_edge value that closely matches the original dimensions of your images. This minimizes the amount of scaling required and preserves image details.
  • Use the PainterResizeImages node as a preprocessing step before applying other image transformations or filters to ensure consistent image sizes across your project.

Painter Resize Images Common Errors and Solutions:

Empty Image Input

  • Explanation: This error occurs when the images parameter is None or contains no data.
  • Solution: Ensure that the images parameter is correctly populated with valid image data before passing it to the node.

Invalid Long Edge Value

  • Explanation: This error arises when the long_edge parameter is set outside the allowed range of 1 to 8192.
  • Solution: Verify that the long_edge value is within the specified range and adjust it accordingly to avoid this error.

Painter Resize Images Related Nodes

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

Painter Resize Images