ComfyUI > Nodes > ComfyUI Easy Use > Image Scale Down To Size

ComfyUI Node: Image Scale Down To Size

Class Name

easy imageScaleDownToSize

Category
EasyUse/Image
Author
yolain (Account age: 1341days)
Extension
ComfyUI Easy Use
Latest Updated
2024-06-25
Github Stars
0.51K

How to Install ComfyUI Easy Use

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

Image Scale Down To Size Description

Resize images while maintaining aspect ratio, ideal for various applications.

Image Scale Down To Size:

The easy imageScaleDownToSize node is designed to help you resize images to a specific dimension while maintaining the aspect ratio. This node is particularly useful when you need to downscale images to fit within a certain size constraint, either by ensuring the longer side or the shorter side matches the specified size. It provides a straightforward way to manage image dimensions without distorting the original aspect ratio, making it ideal for preparing images for various applications, such as web use, printing, or further processing in your AI art projects.

Image Scale Down To Size Input Parameters:

images

This parameter accepts the image or images you want to downscale. The input should be in the format of an image tensor, which the node will process to adjust its size according to the specified parameters.

size

This integer parameter defines the target size for the image downscaling. The value represents the dimension (in pixels) that the image will be scaled down to, either in terms of its width or height, depending on the mode selected. The default value is 512, with a minimum of 1 and a maximum that corresponds to the maximum resolution supported by your system.

mode

This boolean parameter determines how the target size is applied. If set to True (max mode), the node will scale the image so that the longer side matches the specified size. If set to False (min mode), the node will scale the image so that the shorter side matches the specified size. This helps in maintaining the aspect ratio while ensuring the image fits within the desired dimensions. The default value is True.

Image Scale Down To Size Output Parameters:

IMAGE

The output is the downscaled image, which retains the original aspect ratio but fits within the specified size constraints. This ensures that the image is resized appropriately without any distortion, making it suitable for various uses where specific dimensions are required.

Image Scale Down To Size Usage Tips:

  • To ensure your images fit within a specific dimension without distortion, use the mode parameter to control whether the longer or shorter side should match the target size.
  • When preparing images for web use, consider setting the size parameter to a value that balances quality and loading speed, such as 800 pixels for the longer side.
  • Use this node in conjunction with other image processing nodes to create a streamlined workflow for preparing images for different outputs, such as printing or digital displays.

Image Scale Down To Size Common Errors and Solutions:

"Invalid image format"

  • Explanation: The input provided is not in the correct image tensor format.
  • Solution: Ensure that the input is a valid image tensor. Check the format and dimensions of the image before passing it to the node.

"Size parameter out of range"

  • Explanation: The specified size is either below the minimum value of 1 or exceeds the maximum resolution supported by your system.
  • Solution: Adjust the size parameter to be within the acceptable range. Verify the maximum resolution supported by your system and ensure the size value is within this limit.

"Mode parameter not recognized"

  • Explanation: The mode parameter is not set to a valid boolean value.
  • Solution: Ensure that the mode parameter is set to either True or False. This can be done by checking the input settings and correcting any invalid entries.

Image Scale Down To Size Related Nodes

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