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 > Sage Utils > Guess Resolution By Ratio

ComfyUI Node: Guess Resolution By Ratio

Class Name

Sage_GuessResolutionByRatio

Category
Sage Utils/image
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

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

Guess Resolution By Ratio Description

Estimates image resolution based on input dimensions and aspect ratios, rounding to nearest 64.

Guess Resolution By Ratio:

The Sage_GuessResolutionByRatio node is designed to intelligently estimate a suitable resolution for an image based on its input dimensions and common aspect ratios. This node is particularly useful for AI artists who need to quickly adjust image resolutions to fit standard aspect ratios without manually calculating the dimensions. By analyzing the provided width and height, the node selects a resolution that aligns with one of the predefined aspect ratios, ensuring that the output dimensions are rounded to the nearest multiple of 64. This feature is beneficial for maintaining consistency and compatibility with various image processing tools and workflows. The node simplifies the process of resolution adjustment, making it accessible even to those with limited technical expertise, and helps streamline the workflow by automating the resolution guessing process.

Guess Resolution By Ratio Input Parameters:

width

The width parameter specifies the initial width of the image that you want to adjust. It plays a crucial role in determining the aspect ratio and the final guessed resolution. The width must be between 64 and 8192 pixels, with a default value of 1024 pixels. Adjusting this parameter will directly influence the output resolution, as the node uses it to calculate the closest matching aspect ratio.

height

The height parameter defines the initial height of the image that you want to adjust. Similar to the width, it is essential for calculating the aspect ratio and determining the final guessed resolution. The height must also be between 64 and 8192 pixels, with a default value of 1024 pixels. Modifying this parameter will affect the output resolution, as the node uses it in conjunction with the width to find the best matching aspect ratio.

Guess Resolution By Ratio Output Parameters:

new_width

The new_width output represents the adjusted width of the image after the node has guessed the resolution based on the input dimensions and aspect ratios. This value is rounded to the nearest multiple of 64 to ensure compatibility with various image processing tools. The new_width is crucial for maintaining the desired aspect ratio and ensuring that the image fits standard dimensions.

new_height

The new_height output indicates the adjusted height of the image after the node has processed the input dimensions and aspect ratios. Like the new_width, this value is rounded to the nearest multiple of 64. The new_height is essential for preserving the aspect ratio and ensuring that the image conforms to standard resolutions, making it easier to integrate into different workflows.

Guess Resolution By Ratio Usage Tips:

  • To achieve the best results, ensure that the input width and height are set to the dimensions of the original image you want to adjust. This will help the node accurately guess the most suitable resolution.
  • Use this node when you need to quickly adjust image resolutions to fit common aspect ratios, especially when working with multiple images that require consistent dimensions.
  • If you are unsure about the aspect ratio to use, rely on the node's ability to automatically select the closest matching ratio based on the input dimensions.

Guess Resolution By Ratio Common Errors and Solutions:

Invalid input dimensions

  • Explanation: This error occurs when the input width or height is set outside the allowed range of 64 to 8192 pixels.
  • Solution: Ensure that both the width and height are within the specified range. Adjust the values accordingly and try again.

Resolution not a multiple of 64

  • Explanation: The output resolution must be a multiple of 64, and this error indicates that the guessed resolution does not meet this requirement.
  • Solution: Double-check the input dimensions and ensure they are set correctly. The node should automatically round the output to the nearest multiple of 64, but if issues persist, consider adjusting the input values slightly to achieve a compatible resolution.

Guess Resolution By Ratio Related Nodes

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