Visit ComfyUI Online for ready-to-use ComfyUI environment
Select and apply aspect ratios to images for standardized resizing, ideal for AI artists and various applications.
The SDXLAspectRatioSelector node is designed to help you select and apply specific aspect ratios to your images, ensuring they meet your desired dimensions. This node is particularly useful for AI artists who need to standardize image sizes for various applications, such as social media posts, prints, or digital displays. By providing a range of common aspect ratios, the node simplifies the process of resizing images while maintaining their visual integrity. The node automatically calculates the appropriate width and height based on the selected aspect ratio, ensuring that the final dimensions are optimized for your needs.
The aspect_ratio
parameter allows you to choose from a list of predefined aspect ratios. This selection determines the width and height proportions of the output image. The available options include "1:1", "2:3", "3:4", "5:8", "9:16", "9:19", "9:21", "3:2", "4:3", "8:5", "16:9", "19:9", and "21:9". Selecting an appropriate aspect ratio is crucial for ensuring that your image fits the intended display format without distortion. There are no minimum or maximum values for this parameter as it is a categorical selection.
The ratio
output parameter returns the selected aspect ratio as a string. This helps you verify that the correct aspect ratio has been applied to your image.
The width
output parameter provides the calculated width of the image based on the selected aspect ratio. This value is adjusted to ensure that the image dimensions are optimized and divisible by 8, which is important for certain image processing tasks.
The height
output parameter provides the calculated height of the image based on the selected aspect ratio. Similar to the width, this value is adjusted to ensure optimal dimensions and divisibility by 8.
© Copyright 2024 RunComfy. All Rights Reserved.