ComfyUI > Nodes > ComfyUI-JakeUpgrade > SDXL Aspect Ratio JKšŸ‰

ComfyUI Node: SDXL Aspect Ratio JKšŸ‰

Class Name

CR SDXL Aspect Ratio JK

Category
šŸ‰ JK/šŸ“¦ Misc
Author
jakechai (Account age: 1902days)
Extension
ComfyUI-JakeUpgrade
Latest Updated
2025-05-20
Github Stars
0.08K

How to Install ComfyUI-JakeUpgrade

Install this extension via the ComfyUI Manager by searching for ComfyUI-JakeUpgrade
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JakeUpgrade 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SDXL Aspect Ratio JKšŸ‰ Description

Aspect ratio management node for images, customizable SDXL resolutions, swap width and height, AI artist tool.

SDXL Aspect Ratio JKšŸ‰:

The CR SDXL Aspect Ratio JK node is designed to help you manage and adjust the aspect ratio of your images, particularly for the SDXL series of resolutions. This node allows you to select from a variety of predefined SDXL resolutions or specify custom dimensions, making it versatile for different artistic needs. Additionally, it offers the option to swap the width and height dimensions, providing further flexibility in how you configure your image outputs. This node is particularly useful for AI artists who need to ensure their images meet specific resolution requirements or who want to experiment with different aspect ratios to achieve the desired visual effect.

SDXL Aspect Ratio JKšŸ‰ Input Parameters:

resolution

This parameter allows you to choose from a list of predefined SDXL resolutions or select "Custom" to specify your own dimensions. The available options include various standard resolutions like "SDXL 1024x1024", "SDXL 1280x768", and many others. Selecting a predefined resolution ensures that your image conforms to standard sizes, which can be beneficial for consistency and compatibility. If "Custom" is selected, you can define your own width and height using the custom_width and custom_height parameters.

custom_width

This parameter is used to specify the custom width of the image when the "Custom" resolution option is selected. It accepts integer values with a default of 1024, a minimum of 64, and a maximum of 2048, with increments of 8. This allows you to precisely control the width of your image, ensuring it meets your specific requirements.

custom_height

This parameter is used to specify the custom height of the image when the "Custom" resolution option is selected. It accepts integer values with a default of 1024, a minimum of 64, and a maximum of 2048, with increments of 8. This allows you to precisely control the height of your image, ensuring it meets your specific requirements.

swap_dimensions

This boolean parameter allows you to swap the width and height dimensions of the selected resolution. The default value is False. When set to True, the width and height values are interchanged, providing an easy way to switch between landscape and portrait orientations without manually adjusting the dimensions.

SDXL Aspect Ratio JKšŸ‰ Output Parameters:

width

This output parameter provides the width of the image based on the selected resolution or custom dimensions. It reflects the final width after any dimension swapping has been applied, ensuring you have the correct width for your image processing needs.

height

This output parameter provides the height of the image based on the selected resolution or custom dimensions. It reflects the final height after any dimension swapping has been applied, ensuring you have the correct height for your image processing needs.

SDXL Aspect Ratio JKšŸ‰ Usage Tips:

  • When working with standard resolutions, select from the predefined options to ensure compatibility and consistency across your projects.
  • Use the "Custom" resolution option if you have specific dimension requirements that are not covered by the predefined options.
  • Utilize the swap_dimensions parameter to quickly switch between landscape and portrait orientations without manually adjusting the width and height values.
  • Experiment with different aspect ratios to find the best fit for your artistic vision, especially when creating images for different platforms or media.

SDXL Aspect Ratio JKšŸ‰ Common Errors and Solutions:

Invalid custom width or height

  • Explanation: The custom width or height value is outside the allowed range (64 to 2048).
  • Solution: Ensure that the custom width and height values are within the specified range and are multiples of 8.

Resolution not recognized

  • Explanation: The selected resolution is not one of the predefined options or "Custom".
  • Solution: Verify that the resolution parameter is set to one of the available options or "Custom" for custom dimensions.

Dimension swap not applied

  • Explanation: The swap_dimensions parameter is set to False, but the dimensions appear swapped.
  • Solution: Double-check the swap_dimensions parameter and ensure it is set to True if you want to swap the width and height dimensions.

SDXL Aspect Ratio JKšŸ‰ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JakeUpgrade
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.