ComfyUI  >  Nodes  >  Comfyroll Studio >  🔳 CR Aspect Ratio Banners

ComfyUI Node: 🔳 CR Aspect Ratio Banners

Class Name

CR Aspect Ratio Banners

Category
🧩 Comfyroll Studio/✨ Essential/🔳 Aspect Ratio
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for  Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔳 CR Aspect Ratio Banners Description

Create banners with specific aspect ratios easily, adjust dimensions, swap sizes, and apply scaling factors for professional results.

🔳 CR Aspect Ratio Banners:

The CR Aspect Ratio Banners node is designed to help you create banners with specific aspect ratios, ensuring that your artwork fits perfectly within the desired dimensions. This node is particularly useful for generating banners for various platforms, such as websites, advertisements, or social media, where maintaining a consistent and visually appealing aspect ratio is crucial. By using this node, you can easily adjust the width and height of your banners while preserving the aspect ratio, swap dimensions if needed, and apply scaling factors to achieve the desired output size. This functionality simplifies the process of creating professional-looking banners, saving you time and effort.

🔳 CR Aspect Ratio Banners Input Parameters:

width

The width parameter specifies the initial width of the banner. This value is used as a starting point for calculating the final dimensions based on the aspect ratio and other parameters. The width impacts the overall size and proportion of the banner. There is no specific minimum or maximum value, but it should be set according to the desired output size.

height

The height parameter specifies the initial height of the banner. Similar to the width, this value is used to determine the final dimensions in conjunction with the aspect ratio and other parameters. The height affects the overall size and proportion of the banner. There is no specific minimum or maximum value, but it should be set according to the desired output size.

aspect_ratio

The aspect_ratio parameter defines the ratio of the width to the height of the banner. This value ensures that the banner maintains the desired proportions, regardless of the specific dimensions. Common aspect ratios include 16:9, 4:3, and 1:1. The aspect ratio is crucial for ensuring that the banner looks consistent and professional across different platforms.

swap_dimensions

The swap_dimensions parameter is a boolean value that determines whether the width and height should be swapped. This can be useful if you need to quickly change the orientation of the banner from landscape to portrait or vice versa. The default value is false, meaning the dimensions are not swapped unless specified.

upscale_factor

The upscale_factor parameter allows you to scale up the dimensions of the banner by a specified factor. This is useful for increasing the size of the banner while maintaining the aspect ratio. The upscale factor should be a positive value, with a default value of 1, meaning no scaling is applied.

prescale_factor

The prescale_factor parameter allows you to scale down the dimensions of the banner before applying the aspect ratio and other adjustments. This is useful for reducing the size of the banner while maintaining the aspect ratio. The prescale factor should be a positive value, with a default value of 1, meaning no scaling is applied.

batch_size

The batch_size parameter specifies the number of banners to be generated in a single batch. This is useful for creating multiple banners with the same settings, saving time and effort. The batch size should be a positive integer, with a default value of 1.

🔳 CR Aspect Ratio Banners Output Parameters:

The banner_width parameter represents the final width of the generated banner(s) after applying the aspect ratio and other adjustments. This value is important for understanding the exact dimensions of the output banner.

The banner_height parameter represents the final height of the generated banner(s) after applying the aspect ratio and other adjustments. This value is important for understanding the exact dimensions of the output banner.

🔳 CR Aspect Ratio Banners Usage Tips:

  • To create a banner with a specific aspect ratio, set the width and height parameters to your desired initial dimensions and specify the aspect_ratio accordingly.
  • Use the swap_dimensions parameter to quickly change the orientation of your banner without manually adjusting the width and height.
  • Apply the upscale_factor or prescale_factor to adjust the size of your banner while maintaining the aspect ratio, ensuring that the final output meets your requirements.
  • Set the batch_size parameter to generate multiple banners with the same settings, which can be useful for creating a series of consistent banners for a campaign.

🔳 CR Aspect Ratio Banners Common Errors and Solutions:

Invalid aspect ratio value

  • Explanation: The aspect ratio value provided is not valid or not in the correct format.
  • Solution: Ensure that the aspect ratio is specified as a positive numerical value, such as 16:9 or 4:3.

Negative or zero dimensions

  • Explanation: The width or height parameter is set to a negative value or zero, which is not allowed.
  • Solution: Set the width and height parameters to positive values that reflect the desired initial dimensions of the banner.

Invalid batch size

  • Explanation: The batch size parameter is set to a non-positive integer.
  • Solution: Ensure that the batch size is a positive integer, such as 1, 2, or 3, to generate the desired number of banners.

🔳 CR Aspect Ratio Banners Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.