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.
