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_SamplingUtils > ImageScaleAndResolutionPicker

ComfyUI Node: ImageScaleAndResolutionPicker

Class Name

ImageScaleAndResolutionPicker

Category
utils
Author
silveroxides (Account age: 2211days)
Extension
ComfyUI_SamplingUtils
Latest Updated
2026-06-03
Github Stars
0.02K

How to Install ComfyUI_SamplingUtils

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

ImageScaleAndResolutionPicker Description

Facilitates image scaling and resolution selection based on criteria for AI artists, offering precise control and streamlined process.

ImageScaleAndResolutionPicker:

The ImageScaleAndResolutionPicker node is designed to facilitate the process of scaling images and selecting appropriate resolutions based on specific criteria such as aspect ratio and megapixel targets. This node is particularly beneficial for AI artists who need to adjust image dimensions while maintaining quality and desired proportions. By leveraging various scaling methods and resolution settings, it allows for precise control over the final output, ensuring that images are resized efficiently without compromising on detail or clarity. The node's primary goal is to streamline the image scaling process, making it accessible and straightforward for users who may not have a technical background, while still providing the flexibility needed for more advanced image manipulation tasks.

ImageScaleAndResolutionPicker Input Parameters:

image

This optional parameter allows you to input the image you wish to scale. If no image is provided, the node will generate a blank image based on the specified resolution and aspect ratio settings.

upscale_method

This parameter lets you choose the method used for upscaling the image. Options include "nearest-exact", "bilinear", "area", "bicubic", and "lanczos". Each method offers different levels of quality and processing speed, with "lanczos" typically providing the highest quality at the cost of processing time.

crop_method

This parameter determines how the image will be cropped if cropping is enabled. Options are "disabled" and "center". When set to "center", the image will be cropped to the target aspect ratio, preserving the center of the image and removing equal amounts from either side.

aspect_ratio

This parameter specifies the desired aspect ratio for the output image. The default is set to "SQUARE", but other aspect ratios can be selected to fit specific needs. This setting is crucial for ensuring that the image maintains the correct proportions during scaling.

megapixels

This parameter sets the target total megapixels for the output image, with a default value of 1.0. The range is from 0.01 to 16.0, allowing for a wide variety of image sizes. This setting helps control the overall resolution and quality of the scaled image.

resolution_steps

This advanced parameter defines the granularity of the resolution adjustments, with a default value of 1. It ranges from 1 to 256 and allows for fine-tuning of the final image dimensions to meet specific requirements.

scale_by

This parameter determines the factor by which the initial resolution is upscaled. It ranges from 0.0 to 10.0, with a default of 1.0, providing flexibility in how much the image is enlarged.

multiple

This parameter sets the nearest multiple to which the upscaled resolution will be adjusted. It ranges from 4 to 128, with a default of 16, ensuring that the final dimensions are aligned to a specific multiple for consistency.

ImageScaleAndResolutionPicker Output Parameters:

image

The output is the scaled image, which has been adjusted according to the specified parameters. This image retains the desired aspect ratio and resolution, providing a high-quality result that meets the user's specifications.

ImageScaleAndResolutionPicker Usage Tips:

  • Experiment with different upscale_method options to find the best balance between quality and processing time for your specific image.
  • Use the aspect_ratio parameter to ensure your image maintains the correct proportions, especially when preparing images for specific formats or displays.

ImageScaleAndResolutionPicker Common Errors and Solutions:

Image not provided

  • Explanation: The node requires an image input to perform scaling operations.
  • Solution: Ensure that you provide an image as input or configure the node to generate a blank image based on the resolution settings.

Invalid aspect ratio

  • Explanation: The specified aspect ratio is not recognized or supported by the node.
  • Solution: Verify that the aspect ratio is correctly specified and matches one of the supported options.

Resolution steps out of range

  • Explanation: The resolution_steps parameter is set outside the allowable range.
  • Solution: Adjust the resolution_steps parameter to fall within the range of 1 to 256.

ImageScaleAndResolutionPicker Related Nodes

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

ImageScaleAndResolutionPicker