Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate aspect ratio adjustments for images to fit standard dimensions, ideal for Stable Diffusion 1.5 models.
The CR SD1.5 Aspect Ratio node is designed to help you easily adjust the aspect ratio of your images to fit various standard dimensions, particularly for Stable Diffusion 1.5 models. This node simplifies the process of resizing images to common aspect ratios used in different contexts, such as portrait, landscape, square, and cinema formats. By automating the aspect ratio adjustments, it ensures that your images maintain their intended composition and visual appeal across different display formats. This node is particularly useful for AI artists who need to generate images that conform to specific aspect ratios without manually calculating and resizing each image.
The initial width of the image before any aspect ratio adjustments. This parameter sets the base width for the image and is used in conjunction with the height to determine the initial dimensions. The width value will be overridden by the selected aspect ratio.
The initial height of the image before any aspect ratio adjustments. This parameter sets the base height for the image and is used in conjunction with the width to determine the initial dimensions. The height value will be overridden by the selected aspect ratio.
The desired aspect ratio for the image. This parameter allows you to choose from a list of predefined aspect ratios such as "2:3 portrait 512x768", "3:2 landscape 768x512", "1:1 square 512x512", "1:1 square 1024x1024", "16:9 cinema 910x512", "3:4 portrait 512x682", "4:3 landscape 682x512", "1.85:1 cinema 952x512", "2:1 cinema 1024x512", and "2.39:1 anamorphic 1224x512". Selecting an aspect ratio will automatically adjust the width and height to match the chosen format.
A toggle option to swap the width and height dimensions. When set to "On", this parameter will interchange the width and height values, effectively rotating the image by 90 degrees. This is useful for quickly switching between portrait and landscape orientations.
The factor by which the image dimensions should be upscaled. This parameter allows you to increase the size of the image while maintaining the selected aspect ratio. The upscale factor is applied after the aspect ratio adjustment.
The factor by which the image dimensions should be prescaled before any other adjustments. This parameter allows you to scale the image dimensions up or down before applying the aspect ratio and upscale factor. It is useful for fine-tuning the initial size of the image.
The number of images to process in a single batch. This parameter sets the batch size for the node, allowing you to process multiple images simultaneously. The batch size is particularly useful for generating a series of images with the same aspect ratio settings.
The final width of the image after aspect ratio adjustments. This output parameter provides the adjusted width based on the selected aspect ratio and any additional scaling factors.
The final height of the image after aspect ratio adjustments. This output parameter provides the adjusted height based on the selected aspect ratio and any additional scaling factors.
The applied upscale factor for the image. This output parameter confirms the upscale factor used in the final image dimensions.
The number of images processed in the batch. This output parameter confirms the batch size used during the processing.
A tensor representing the latent space of the processed images. This output parameter provides the latent representation of the images, which can be used for further processing or analysis.
A URL link to the help documentation for the node. This output parameter provides a direct link to the online help resources, offering additional guidance and information on using the node effectively.
aspect_ratio
parameter to quickly switch between common aspect ratios without manually calculating dimensions.swap_dimensions
option to easily toggle between portrait and landscape orientations.upscale_factor
to increase the size of your images while maintaining the selected aspect ratio.batch_size
parameter to process multiple images at once, saving time and effort.© Copyright 2024 RunComfy. All Rights Reserved.