Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust and manage image aspect ratios for SDXL format with predefined options for various orientations, simplifying resizing process.
The CR Aspect Ratio SDXL node is designed to help you easily adjust and manage the aspect ratios of your images, specifically tailored for the SDXL format. This node provides a variety of predefined aspect ratios that are commonly used in different contexts, such as square, portrait, and landscape orientations. By using this node, you can ensure that your images are correctly proportioned for various display formats, enhancing their visual appeal and suitability for different applications. The main goal of this node is to simplify the process of resizing images while maintaining their quality and intended composition, making it an essential tool for AI artists who need to prepare their artwork for different platforms and purposes.
The width parameter specifies the initial width of the image before any aspect ratio adjustments are applied. This value is crucial as it serves as the starting point for resizing the image according to the selected aspect ratio. The width should be provided in pixels, and it directly impacts the final dimensions of the image.
The height parameter defines the initial height of the image before any aspect ratio adjustments are made. Similar to the width, this value is essential for determining the starting dimensions of the image. The height should be provided in pixels, and it influences the final size of the image after resizing.
The aspect_ratio parameter allows you to select from a list of predefined aspect ratios tailored for the SDXL format. These ratios include options like "1:1 square 1024x1024", "3:4 portrait 896x1152", "16:9 landscape 1344x768", and more. Choosing the appropriate aspect ratio ensures that your image is resized to the desired proportions, making it suitable for various display contexts.
The swap_dimensions parameter is a boolean option that, when enabled, swaps the width and height of the image. This can be useful if you need to quickly change the orientation of your image from portrait to landscape or vice versa without manually adjusting the dimensions.
The upscale_factor parameter allows you to specify a scaling factor to increase the size of the image. This is particularly useful if you need to enlarge your image while maintaining its aspect ratio. The value should be a positive number, with higher values resulting in a larger image.
The prescale_factor parameter is used to scale the image before applying the aspect ratio adjustments. This can help in maintaining the quality of the image during the resizing process. The value should be a positive number, and it affects the initial scaling of the image.
The batch_size parameter specifies the number of images to be processed in a single batch. This is useful for handling multiple images simultaneously, ensuring that all images in the batch are resized according to the selected aspect ratio and other parameters.
The resized_image parameter represents the final output image after all aspect ratio adjustments and scaling factors have been applied. This image is resized according to the specified width, height, aspect ratio, and other parameters, ensuring it meets the desired proportions and quality standards.
© Copyright 2024 RunComfy. All Rights Reserved.