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_JR_MiniMaxH3Node > JR MiniMax H3 Resolution Scale Calculator

ComfyUI Node: JR MiniMax H3 Resolution Scale Calculator

Class Name

JR_H3_ResolutionScaleCalculator

Category
JR MiniMax H3/Scaling
Author
Goldlionren (Account age: 872days)
Extension
ComfyUI_JR_MiniMaxH3Node
Latest Updated
2026-08-27
Github Stars
0.03K

How to Install ComfyUI_JR_MiniMaxH3Node

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

JR MiniMax H3 Resolution Scale Calculator Description

Deterministic image resolution calculator for AI upscaling with custom aspect ratios, ensuring quality preservation.

JR MiniMax H3 Resolution Scale Calculator:

The JR_H3_ResolutionScaleCalculator is a specialized node designed to calculate optimal image resolutions while preserving the original area, making it particularly useful for AI artists who need to upscale images without losing quality. This node is deterministic, meaning it consistently produces the same output for the same input parameters, ensuring reliability in your creative workflows. It supports various aspect ratios, including custom ones, allowing you to tailor the output to specific artistic needs. By calculating the resolution based on target megapixels and aspect ratios, it ensures that the resulting image maintains the desired quality and dimensions. This node is essential for artists looking to upscale images efficiently while maintaining the integrity of the original content.

JR MiniMax H3 Resolution Scale Calculator Input Parameters:

source_width

The source_width parameter specifies the width of the original image in pixels. It is crucial for determining the aspect ratio and calculating the new resolution. The value must be a positive integer, as negative or zero values will result in an error.

source_height

The source_height parameter defines the height of the original image in pixels. Like source_width, it is used to calculate the aspect ratio and the new resolution. This parameter must also be a positive integer to avoid errors.

target_megapixels

The target_megapixels parameter indicates the desired size of the output image in megapixels. It directly influences the scale of the image, with a valid range between 0.001 and 256.0 megapixels. This parameter helps ensure that the output image meets specific size requirements.

aspect

The aspect parameter allows you to select the desired aspect ratio for the output image. Options include predefined ratios like "1:1", "2:3", "3:2", "16:9", "9:16", or "Custom" for user-defined ratios. Choosing the right aspect ratio is essential for maintaining the visual composition of the image.

custom_aspect_width

When the aspect parameter is set to "Custom", the custom_aspect_width parameter specifies the width component of the custom aspect ratio. This value must be a positive integer and is used in conjunction with custom_aspect_height to define a unique aspect ratio.

custom_aspect_height

Similar to custom_aspect_width, the custom_aspect_height parameter is used when the aspect is set to "Custom". It defines the height component of the custom aspect ratio and must be a positive integer to ensure a valid aspect ratio.

divisor

The divisor parameter determines the granularity of the resolution calculation, ensuring that the output dimensions are divisible by this value. Acceptable values are 8, 16, or 32, with a default of 32. This parameter helps maintain compatibility with certain image processing requirements.

JR MiniMax H3 Resolution Scale Calculator Output Parameters:

width

The width output parameter represents the calculated width of the upscaled image in pixels. It is determined based on the input parameters and ensures that the output image maintains the desired aspect ratio and target megapixels.

height

The height output parameter indicates the calculated height of the upscaled image in pixels. Like width, it is derived from the input parameters to preserve the aspect ratio and target megapixels.

scale

The scale output parameter provides the scaling factor applied to the original image to achieve the target resolution. It is a crucial value for understanding how much the image has been enlarged.

area

The area output parameter represents the total area of the upscaled image in megapixels. It confirms that the output image meets the specified target megapixels, ensuring the desired image size.

JR MiniMax H3 Resolution Scale Calculator Usage Tips:

  • Ensure that the source_width and source_height are positive integers to avoid errors during calculation.
  • Use the aspect parameter to maintain the visual composition of your image, especially when working with specific display formats.
  • When using a custom aspect ratio, double-check that both custom_aspect_width and custom_aspect_height are positive integers to ensure a valid calculation.
  • Select an appropriate divisor to match the requirements of your image processing pipeline, especially if compatibility with certain tools is necessary.

JR MiniMax H3 Resolution Scale Calculator Common Errors and Solutions:

"Source width and height must be positive."

  • Explanation: This error occurs when either the source_width or source_height is zero or negative.
  • Solution: Ensure both source_width and source_height are positive integers before running the calculation.

"target_megapixels must be between 0.001 and 256."

  • Explanation: The target_megapixels value is outside the acceptable range.
  • Solution: Adjust the target_megapixels to be within the range of 0.001 to 256.0.

"divisor must be 8, 16, or 32."

  • Explanation: The divisor value is not one of the accepted options.
  • Solution: Set the divisor to either 8, 16, or 32 to ensure proper calculation.

"Custom aspect dimensions must be positive."

  • Explanation: Either custom_aspect_width or custom_aspect_height is zero or negative when using a custom aspect ratio.
  • Solution: Verify that both custom_aspect_width and custom_aspect_height are positive integers.

JR MiniMax H3 Resolution Scale Calculator Related Nodes

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

JR MiniMax H3 Resolution Scale Calculator