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-H3-IMG-Gen-SatoDive > H3 Size Presets - SatoDive

ComfyUI Node: H3 Size Presets - SatoDive

Class Name

SatoDiveH3Size

Category
SatoDive/H3
Author
SatoDive (Account age: 138days)
Extension
ComfyUI-H3-IMG-Gen-SatoDive
Latest Updated
2026-10-08
Github Stars
0.02K

How to Install ComfyUI-H3-IMG-Gen-SatoDive

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

H3 Size Presets - SatoDive Description

Optimize image dimensions based on aspect ratio and megapixel target for AI artists, ensuring desired resolution and aspect ratio.

H3 Size Presets - SatoDive:

The SatoDiveH3Size node is designed to help you determine the optimal width and height for generating images based on a specified aspect ratio and megapixel target. This node is particularly useful for AI artists who want to ensure their images are produced with the desired resolution and aspect ratio, without having to manually calculate dimensions. By leveraging predefined aspect ratios or allowing for custom dimensions, the node simplifies the process of setting up image generation parameters. It ensures that the resulting dimensions are multiples of 32, which is often a requirement for certain image processing models. This node is an essential tool for achieving high-quality image outputs that meet specific artistic and technical requirements.

H3 Size Presets - SatoDive Input Parameters:

aspect

The aspect parameter allows you to select the desired aspect ratio for your image. You can choose from a list of predefined aspect ratios such as "16:9", "3:2", "4:3", "1:1", "3:4", "2:3", "9:16", and "21:9", or opt for a "Custom" aspect ratio if you have specific dimensions in mind. The default value is "16:9". This parameter impacts the shape and composition of the generated image, ensuring it fits the intended visual format.

megapixels

The megapixels parameter specifies the target area of the image in megapixels. It determines the overall resolution and detail level of the generated image. The available options are "2.5", "3", "4", "6", and "8", with a default value of "2.5". This parameter is crucial for balancing image quality with processing efficiency, as higher megapixels result in more detailed images but may require more computational resources.

width

The width parameter is an optional input that allows you to specify the exact width of the image in pixels when using a custom aspect ratio. The value must be an integer between 64 and 8192, with a default of 1920. This parameter is used only when the aspect ratio is set to "Custom", and it helps define the horizontal dimension of the image.

height

The height parameter is an optional input that allows you to specify the exact height of the image in pixels when using a custom aspect ratio. The value must be an integer between 64 and 8192, with a default of 1088. Similar to the width parameter, this is used only when the aspect ratio is set to "Custom", and it defines the vertical dimension of the image.

H3 Size Presets - SatoDive Output Parameters:

width

The width output parameter provides the calculated width of the image in pixels, ensuring it is a multiple of 32. This ensures compatibility with certain image processing models that require dimensions to be aligned to specific grid sizes. The output width is determined based on the selected aspect ratio and megapixel target, or the custom dimensions provided.

height

The height output parameter provides the calculated height of the image in pixels, also ensuring it is a multiple of 32. Like the width, this ensures the image dimensions are suitable for processing by models that require specific grid alignments. The output height is calculated based on the chosen aspect ratio and megapixel target, or the custom dimensions specified.

H3 Size Presets - SatoDive Usage Tips:

  • When aiming for high-quality images, consider selecting a higher megapixel value to ensure more detail and clarity in the output.
  • Use the "Custom" aspect ratio option if you have specific width and height requirements that are not covered by the predefined aspect ratios.
  • Ensure that the width and height values are within the allowed range (64 to 8192) to avoid errors and ensure compatibility with image processing models.

H3 Size Presets - SatoDive Common Errors and Solutions:

Invalid aspect ratio selection

  • Explanation: This error occurs when an aspect ratio is selected that is not available in the predefined list or when "Custom" is selected without providing valid width and height values.
  • Solution: Ensure that you select an aspect ratio from the available options or provide valid custom dimensions when choosing "Custom".

Width or height out of range

  • Explanation: This error happens when the specified width or height is outside the allowed range of 64 to 8192 pixels.
  • Solution: Adjust the width and height values to fall within the specified range to ensure proper image generation.

Non-multiple of 32 dimensions

  • Explanation: This error can occur if the calculated or specified dimensions are not multiples of 32, which is required for certain image processing models.
  • Solution: Use the node's automatic snapping feature to ensure dimensions are adjusted to the nearest multiple of 32, or manually adjust your custom dimensions accordingly.

H3 Size Presets - SatoDive Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-H3-IMG-Gen-SatoDive
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.

H3 Size Presets - SatoDive