Visit ComfyUI Online for ready-to-use ComfyUI environment
Create banners with specific aspect ratios easily, adjust dimensions, swap sizes, and apply scaling factors for professional results.
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.
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.
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.
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.
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.
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.
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.
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.
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.
width
and height
parameters to your desired initial dimensions and specify the aspect_ratio
accordingly.swap_dimensions
parameter to quickly change the orientation of your banner without manually adjusting the width and height.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.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.© Copyright 2024 RunComfy. All Rights Reserved.