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 > Resolution Selector Extended

ComfyUI Node: Resolution Selector Extended

Class Name

ResolutionSelectorExtended

Category
utilities
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

Resolution Selector Extended Description

Automates image dimension calculation based on aspect ratio and megapixel count for precise resolution control.

Resolution Selector Extended:

The ResolutionSelectorExtended node is a utility designed to help you calculate the optimal width and height for an image based on a specified aspect ratio and a target megapixel count. This node is particularly useful when setting up dimensions for an Empty Latent Image, ensuring that the resulting image meets your desired specifications while maintaining a consistent aspect ratio. By automating the calculation of dimensions, this node simplifies the process of preparing images for further processing or rendering, saving you time and effort. Its primary goal is to provide a straightforward method for determining image resolution, making it an essential tool for AI artists who need precise control over image dimensions without delving into complex calculations.

Resolution Selector Extended Input Parameters:

aspect_ratio

The aspect_ratio parameter allows you to specify the desired aspect ratio for the output dimensions. This is crucial for maintaining the visual proportions of your image. The available options include predefined aspect ratios, with the default being AspectRatio.SQUARE. This parameter ensures that the width and height are calculated to fit the chosen aspect ratio, providing consistency in your image outputs.

megapixels

The megapixels parameter sets the target total megapixels for the image. It determines the overall size of the image in terms of pixel count, with a default value of 1.0 megapixels, which is approximately equivalent to a 1024×1024 resolution for a square image. You can adjust this value between 0.1 and 16.0 megapixels, allowing for flexibility in image size while ensuring that the resolution meets your specific needs.

multiple

The multiple parameter specifies the nearest multiple to which the calculated resolution should be adjusted. This helps in aligning the resolution to specific increments, which can be important for compatibility with certain processing tools or workflows. The default value is 8, with a range from 8 to 128, and adjustments can be made in steps of 4. This parameter ensures that the resolution is both practical and efficient for further processing.

minimum

The minimum parameter sets the minimum resolution for any side of the image. This ensures that the image dimensions do not fall below a certain threshold, which can be important for maintaining image quality and detail. The default minimum resolution is 256 pixels, with a range from 32 to 4096 pixels, adjustable in steps of 32. This parameter provides a safeguard against producing images that are too small for your intended use.

Resolution Selector Extended Output Parameters:

width

The width output parameter represents the calculated width of the image based on the specified aspect ratio and megapixel target. This value is crucial for determining the horizontal dimension of your image, ensuring it aligns with your desired specifications.

height

The height output parameter represents the calculated height of the image, complementing the width to form the complete resolution. This value ensures that the vertical dimension of your image is consistent with the aspect ratio and megapixel target, providing a balanced and proportionate output.

Resolution Selector Extended Usage Tips:

  • To achieve a specific image size, adjust the megapixels parameter while keeping the aspect_ratio consistent with your desired proportions.
  • Use the multiple parameter to ensure that the resolution aligns with specific increments, which can be beneficial for compatibility with certain tools or workflows.

Resolution Selector Extended Common Errors and Solutions:

Invalid aspect ratio selection

  • Explanation: This error occurs when an unsupported aspect ratio is selected.
  • Solution: Ensure that you select a valid aspect ratio from the available options provided by the node.

Megapixel value out of range

  • Explanation: This error arises when the megapixels parameter is set outside the allowed range of 0.1 to 16.0.
  • Solution: Adjust the megapixels value to fall within the specified range to avoid this error.

Resolution below minimum threshold

  • Explanation: This error happens when the calculated resolution is below the specified minimum parameter.
  • Solution: Increase the minimum parameter or adjust the megapixels and aspect_ratio to ensure the resolution meets the minimum requirement.

Resolution Selector Extended 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.

Resolution Selector Extended