ComfyUI  >  Nodes  >  ComfyUI >  Upscale Image

ComfyUI Node: Upscale Image

Class Name

ImageScale

Category
image/upscaling
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for  ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Upscale Image Description

Resize images with various upscaling methods for AI artists, maintaining quality and detail.

Upscale Image:

The ImageScale node is designed to resize images to specific dimensions using various upscaling methods. This node is particularly useful for AI artists who need to adjust the size of their images while maintaining quality. By offering multiple upscaling techniques, it ensures that the resized images retain as much detail and clarity as possible. Whether you need to upscale an image for printing, web use, or further processing, the ImageScale node provides a flexible and efficient solution.

Upscale Image Input Parameters:

image

This parameter represents the input image that you want to resize. It is the primary data that the node will process.

upscale_method

This parameter allows you to choose the method used for upscaling the image. The available options are "nearest-exact", "bilinear", "area", "bicubic", and "lanczos". Each method has its own characteristics: "nearest-exact" is the simplest and fastest but may produce blocky results, "bilinear" and "bicubic" offer smoother results, "area" is good for downscaling, and "lanczos" provides high-quality results but is computationally intensive.

width

This parameter sets the desired width of the output image. The default value is 512, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. If set to 0, the width will be automatically calculated based on the height to maintain the aspect ratio.

height

This parameter sets the desired height of the output image. The default value is 512, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. If set to 0, the height will be automatically calculated based on the width to maintain the aspect ratio.

crop

This parameter determines how the image should be cropped if the aspect ratio of the input image does not match the desired output dimensions. The options are "disabled" and "center". "Disabled" will not crop the image, while "center" will crop the image from the center to fit the desired dimensions.

Upscale Image Output Parameters:

IMAGE

The output is the resized image. This image will have the dimensions specified by the width and height parameters and will be processed using the selected upscaling method. The output image retains as much detail and quality as possible, depending on the chosen upscaling technique.

Upscale Image Usage Tips:

  • For high-quality upscaling, use the "lanczos" method, especially when enlarging images significantly.
  • If you need to maintain the aspect ratio, set either the width or height to 0, and the node will automatically calculate the other dimension.
  • Use the "center" crop method if you want to ensure the most important part of the image remains in the frame when resizing to a different aspect ratio.

Upscale Image Common Errors and Solutions:

Image dimensions exceed maximum resolution

  • Explanation: The specified width or height exceeds the maximum allowed resolution.
  • Solution: Ensure that the width and height parameters are within the allowed range defined by MAX_RESOLUTION.

Invalid upscale method

  • Explanation: The selected upscale method is not one of the available options.
  • Solution: Choose an upscale method from the provided list: "nearest-exact", "bilinear", "area", "bicubic", or "lanczos".

Image input is not provided

  • Explanation: The input image parameter is missing or not correctly specified.
  • Solution: Make sure to provide a valid image as input to the node.

Upscale Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.