ComfyUI > Nodes > ComfyUI-LexTools > ImageScaleToMin

ComfyUI Node: ImageScaleToMin

Class Name

ImageScaleToMin

Category
LexTools/ImageProcessing/upscaling
Author
SOELexicon (Account age: 4757days)
Extension
ComfyUI-LexTools
Latest Updated
2025-03-28
Github Stars
0.03K

How to Install ComfyUI-LexTools

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

ImageScaleToMin Description

Resizes images by scaling the smallest dimension to a specified minimum pixel size.

ImageScaleToMin:

The ImageScaleToMin node is designed to assist you in resizing images by calculating a scaling factor that ensures the smallest dimension of an image meets a specified minimum pixel size. This node is particularly useful when you want to upscale images while maintaining their aspect ratio, ensuring that the smallest side of the image reaches a desired size without manually adjusting each dimension. By automating the calculation of the scale factor, this node simplifies the process of preparing images for further processing or display, making it an essential tool for AI artists who need to ensure consistency in image dimensions across different projects.

ImageScaleToMin Input Parameters:

image

The image parameter is the primary input for this node, representing the image you wish to process. It is required and should be provided in a compatible format that the node can interpret. This parameter is crucial as it serves as the basis for calculating the scaling factor, ensuring that the image's smallest dimension is adjusted to meet the specified minimum size.

MinScalePix

The MinScalePix parameter is an optional input that specifies the minimum pixel size for the smallest dimension of the image. It is a floating-point value with a default of 512, a minimum of 0.0, and a maximum of 2056. This parameter directly influences the scaling factor calculation, as it determines the target size for the image's smallest dimension. Adjusting this value allows you to control the extent of upscaling applied to the image, ensuring that it meets your specific requirements.

ImageScaleToMin Output Parameters:

FLOAT

The output of the ImageScaleToMin node is a single floating-point value representing the calculated scale factor. This scale factor is crucial as it indicates the proportion by which the image should be resized to ensure that its smallest dimension meets the specified minimum pixel size. By providing this value, the node enables you to apply consistent scaling across multiple images, facilitating uniformity in your image processing tasks.

ImageScaleToMin Usage Tips:

  • To ensure consistent image dimensions across a project, set the MinScalePix parameter to the desired minimum size for the smallest dimension of your images. This will help maintain uniformity without manually adjusting each image.
  • Use the calculated scale factor output to apply the same scaling to multiple images, ensuring that all images in a series or batch meet the same minimum dimension requirements.

ImageScaleToMin Common Errors and Solutions:

Invalid image format

  • Explanation: The input image is not in a format that the node can process.
  • Solution: Ensure that the image is provided in a compatible format, such as a standard image tensor, that the node can interpret.

MinScalePix out of range

  • Explanation: The MinScalePix value is set outside the allowed range of 0.0 to 2056.
  • Solution: Adjust the MinScalePix value to fall within the specified range to ensure proper scaling factor calculation.

ImageScaleToMin Related Nodes

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

ImageScaleToMin