ComfyUI > Nodes > ComfyUI-RvTools_v2 > Aspect Ratio (SD15)

ComfyUI Node: Aspect Ratio (SD15)

Class Name

Aspect Ratio (SD15) [RvTools]

Category
🫦 RvTools II/ Image
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

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

Aspect Ratio (SD15) Description

The Aspect Ratio (SD15) node simplifies setting image dimensions for specific aspect ratios.

Aspect Ratio (SD15) [RvTools]:

The Aspect Ratio (SD15) [RvTools] node is designed to facilitate the process of setting image dimensions based on specific aspect ratios, particularly for the SD15 model. This node is essential for AI artists who want to ensure their generated images adhere to particular aspect ratios, which can be crucial for maintaining visual consistency and meeting specific artistic or project requirements. By leveraging predefined aspect ratios, this node simplifies the task of calculating the appropriate width and height for images, ensuring they are optimized for the SD15 model's capabilities. This functionality is particularly beneficial for artists who may not have a technical background, as it abstracts the complexity of aspect ratio calculations and provides a straightforward interface for achieving desired image dimensions.

Aspect Ratio (SD15) [RvTools] Input Parameters:

aspect_ratio

The aspect_ratio parameter allows you to select the desired aspect ratio for your output image. This parameter is crucial as it determines the proportional relationship between the width and height of the image. The available options include common aspect ratios such as 1:1, 4:3, 16:9, among others. Choosing the right aspect ratio is important for ensuring that the image fits the intended display or artistic requirements. This parameter does not have a default value, as it depends on the specific needs of your project.

megapixels

The megapixels parameter specifies the target total megapixels for the output image. This parameter impacts the overall resolution and quality of the generated image. The value is expressed in megapixels, where 1.0 MP is approximately equivalent to a 1024×1024 pixel image for a square aspect ratio. The parameter accepts values ranging from 0.1 to 16.0, with a default value of 1.0. Adjusting this parameter allows you to control the image's resolution, balancing between quality and computational resources.

Aspect Ratio (SD15) [RvTools] Output Parameters:

width

The width output parameter provides the calculated width of the image in pixels, based on the selected aspect ratio and megapixel target. This value is always a multiple of 8, ensuring compatibility with various image processing tools and standards. The width is crucial for defining the horizontal dimension of your image, and it directly influences the overall composition and appearance.

height

The height output parameter gives the calculated height of the image in pixels, also determined by the chosen aspect ratio and megapixel target. Like the width, this value is a multiple of 8, which helps maintain consistency and compatibility. The height defines the vertical dimension of your image, playing a key role in the final visual output.

Aspect Ratio (SD15) [RvTools] Usage Tips:

  • When selecting an aspect ratio, consider the final display medium or artistic intent to ensure the image fits well within its intended context.
  • Adjust the megapixels parameter to find a balance between image quality and processing time, especially if working with limited computational resources.

Aspect Ratio (SD15) [RvTools] Common Errors and Solutions:

Invalid aspect ratio string

  • Explanation: This error occurs when the aspect ratio string provided does not match any of the predefined options or is formatted incorrectly.
  • Solution: Ensure that the aspect ratio string is correctly formatted and matches one of the available options, such as 1:1, 4:3, or 16:9.

Megapixels value out of range

  • Explanation: This error arises when the megapixels value is set outside the acceptable range of 0.1 to 16.0.
  • Solution: Adjust the megapixels value to fall within the specified range, ensuring it is neither too low nor too high for the desired image quality and resolution.

Aspect Ratio (SD15) Related Nodes

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

Aspect Ratio (SD15)