ComfyUI > Nodes > ComfyUI > Upscale Image By

ComfyUI Node: Upscale Image By

Class Name

ImageScaleBy

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

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 By Description

Upscale images with specified scaling factor, maintaining aspect ratio and enhancing resolution for various purposes.

Upscale Image By:

The ImageScaleBy node is designed to upscale images by a specified scaling factor, allowing you to enhance the resolution of your images while maintaining their aspect ratio. This node is particularly useful for AI artists who need to increase the size of their images for printing, detailed viewing, or further processing without losing image quality. By leveraging various upscaling methods, ImageScaleBy ensures that the upscaled images retain as much detail and clarity as possible. This node simplifies the process of image enlargement, making it accessible even to those without a technical background.

Upscale Image By Input Parameters:

image

This parameter accepts the image you want to upscale. The image should be in a compatible format that the node can process.

upscale_method

This parameter determines 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" provide smoother results by considering the values of surrounding pixels.
  • "area" is good for downscaling but can be used for upscaling with a focus on preserving the average color.
  • "lanczos" offers high-quality results by using a sinc function for interpolation.

scale_by

This parameter specifies the factor by which the image should be scaled. It is a floating-point value with a default of 1.0, a minimum of 0.01, and a maximum of 8.0. For example, a value of 2.0 will double the dimensions of the image, while a value of 0.5 will halve them.

Upscale Image By Output Parameters:

IMAGE

The output is the upscaled image. This image will have its dimensions increased according to the specified scaling factor while maintaining the original aspect ratio. The quality of the upscaled image will depend on the chosen upscaling method.

Upscale Image By Usage Tips:

  • For the best quality, use the "lanczos" method when you need to upscale images significantly, as it provides the highest quality interpolation.
  • If you need a quick upscale and are not concerned about minor quality loss, "nearest-exact" can be a good choice due to its speed.
  • Experiment with different scaling factors to find the optimal size for your needs. Remember that very high scaling factors may introduce artifacts or reduce image quality, depending on the method used.

Upscale Image By Common Errors and Solutions:

Invalid upscale method

  • Explanation: The specified upscale method is not one of the allowed options.
  • Solution: Ensure that the upscale method is one of the following: "nearest-exact", "bilinear", "area", "bicubic", or "lanczos".

Scale factor out of range

  • Explanation: The scale factor provided is outside the allowed range of 0.01 to 8.0.
  • Solution: Adjust the scale factor to be within the range of 0.01 to 8.0.

Image format not supported

  • Explanation: The input image is in a format that the node cannot process.
  • Solution: Convert the image to a compatible format before using the node. Common formats like PNG and JPEG are usually supported.

Upscale Image By 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.