ComfyUI  >  Nodes  >  Comfyroll Studio >  🔳 CR SDXL Aspect Ratio

ComfyUI Node: 🔳 CR SDXL Aspect Ratio

Class Name

CR SDXL Aspect Ratio

Category
🧩 Comfyroll Studio/✨ Essential/🔳 Aspect Ratio
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for  Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔳 CR SDXL Aspect Ratio Description

Effortlessly adjust image aspect ratios for various formats with predefined dimensions using ComfyUI Node CR SDXL Aspect Ratio.

🔳 CR SDXL Aspect Ratio:

The CR SDXL Aspect Ratio node is designed to help you easily adjust the aspect ratio of your images to fit various predefined dimensions suitable for different use cases, such as social media, printing, or cinematic formats. This node simplifies the process of resizing images by providing a range of standard aspect ratios, ensuring that your images maintain their intended composition and quality. By using this node, you can quickly adapt your artwork to different formats without manually calculating dimensions, making your workflow more efficient and consistent.

🔳 CR SDXL Aspect Ratio Input Parameters:

width

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 starting dimensions. The value should be a positive integer representing the number of pixels.

height

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 starting dimensions. The value should be a positive integer representing the number of pixels.

aspect_ratio

This parameter allows you to select from a list of predefined aspect ratios, such as "SDXL

  • 1:1 square 1024x1024" or "SDXL - 16:9 landscape 1344x768". Choosing an aspect ratio will automatically adjust the width and height to match the selected format. The available options include various portrait, landscape, and cinematic ratios, ensuring flexibility for different use cases.

swap_dimensions

A toggle option that, when enabled, swaps the width and height dimensions. This is useful if you need to quickly change the orientation of your image from portrait to landscape or vice versa. The options are typically "On" or "Off".

upscale_factor

This parameter determines the factor by which the image dimensions will be increased. It is useful for scaling up images while maintaining the selected aspect ratio. The value should be a positive integer or float, representing the multiplication factor for the dimensions.

prescale_factor

Similar to the upscale_factor, this parameter allows you to scale the image dimensions before applying the aspect ratio adjustments. It is useful for pre-scaling images to a desired size before final adjustments. The value should be a positive integer or float.

batch_size

The number of images to process in a single batch. This parameter is important for workflows that involve generating multiple images at once. The value should be a positive integer.

🔳 CR SDXL Aspect Ratio Output Parameters:

width

The adjusted width of the image after applying the selected aspect ratio and any scaling factors. This value represents the final width in pixels.

height

The adjusted height of the image after applying the selected aspect ratio and any scaling factors. This value represents the final height in pixels.

upscale_factor

The final upscale factor applied to the image dimensions. This value is useful for understanding the degree of scaling applied to the original image.

batch_size

The number of images processed in the batch. This value confirms the batch size used during the processing.

samples

A tensor representing the processed image data. This tensor is used internally for further image processing tasks and is essential for maintaining the quality and integrity of the image.

show_help

A URL link to the documentation or help page for the node. This link provides additional information and guidance on using the node effectively.

🔳 CR SDXL Aspect Ratio Usage Tips:

  • Use the predefined aspect ratios to quickly adapt your images to standard formats without manual calculations.
  • Enable the swap_dimensions option to easily switch between portrait and landscape orientations.
  • Adjust the upscale_factor and prescale_factor to control the final size of your images while maintaining the selected aspect ratio.
  • Utilize the batch_size parameter to process multiple images simultaneously, saving time in workflows that require bulk image adjustments.

🔳 CR SDXL Aspect Ratio Common Errors and Solutions:

"Invalid aspect ratio selected"

  • Explanation: The chosen aspect ratio is not recognized or supported by the node.
  • Solution: Ensure that you select an aspect ratio from the predefined list provided by the node.

"Width and height must be positive integers"

  • Explanation: The width or height parameter is set to a non-positive value.
  • Solution: Verify that both the width and height parameters are set to positive integers.

"Batch size must be a positive integer"

  • Explanation: The batch_size parameter is set to a non-positive value.
  • Solution: Ensure that the batch_size parameter is a positive integer.

"Upscale factor must be a positive number"

  • Explanation: The upscale_factor or prescale_factor is set to a non-positive value.
  • Solution: Check that both the upscale_factor and prescale_factor are positive numbers.

🔳 CR SDXL Aspect Ratio Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.