Visit ComfyUI Online for ready-to-use ComfyUI environment
Select and apply specific aspect ratios to images for AI artists, simplifying resizing process with visual integrity.
The AspectRatioSelector node is designed to help you select and apply specific aspect ratios to your images, ensuring they meet your desired dimensions and proportions. This node is particularly useful for AI artists who need to standardize their image outputs to specific aspect ratios for consistency in their projects. 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, making it easier for you to focus on the creative aspects of your work without worrying about technical details.
The aspect_ratio
parameter allows you to choose from a list of predefined aspect ratios. This selection determines the proportions of the output image. The available options include "1:1", "2:3", "3:4", "9:16", "3:2", "4:3", and "16:9". Each option represents a different width-to-height ratio, which will be applied to the image. For example, selecting "1:1" will produce a square image, while "16:9" will produce a widescreen image. This parameter ensures that your images are resized to the exact proportions you need for your project.
The ratio
output parameter returns the selected aspect ratio as a string. This output is useful for confirming the aspect ratio applied to the image and for any subsequent processing steps that may require knowledge of the image's proportions.
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 divisible by 8, which is often a requirement for certain image processing algorithms.
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 that the image dimensions are divisible by 8, maintaining compatibility with various image processing techniques.
ratio
output to keep track of the aspect ratio applied to each image, especially if you are processing multiple images with different aspect ratios.© Copyright 2024 RunComfy. All Rights Reserved.