ComfyUI > Nodes > ComfyUI-Jjk-Nodes > SDXL Recommended image sizes

ComfyUI Node: SDXL Recommended image sizes

Class Name

SDXLRecommendedImageSize

Category
jjk
Author
jjkramhoeft (Account age: 4323days)
Extension
ComfyUI-Jjk-Nodes
Latest Updated
2024-05-22
Github Stars
0.05K

How to Install ComfyUI-Jjk-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-Jjk-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Jjk-Nodes 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 Recommended image sizes Description

Assists in selecting optimal image dimensions with predefined resolutions for various formats.

The SDXLRecommendedImageSize node is designed to assist you in selecting optimal image dimensions for various creative projects, ensuring that your images are tailored to specific formats and aspect ratios. This node provides a convenient way to choose from a set of predefined resolutions that are commonly used in different media contexts, such as cinema, widescreen, and photography. By offering both landscape and portrait aspect options, it allows you to easily adapt your images to fit the desired orientation, enhancing the visual appeal and effectiveness of your work. This node is particularly beneficial for AI artists who need to quickly determine the best image size for their projects without manually calculating dimensions, thus streamlining the creative process and ensuring consistency across different outputs.

resolution

The resolution parameter allows you to select from a list of predefined image sizes that are tailored for specific media formats. These options include "Cinema (1536x640)", "Widescreen (1344x768)", "Photo (1216x832)", "TV (1152x896)", and "Square (1024x1024)". Each resolution is designed to fit common aspect ratios and use cases, making it easier for you to choose the right size for your project. The default value is "Square (1024x1024)", which is a versatile option suitable for many applications.

aspect

The aspect parameter lets you choose the orientation of your image, either "Landscape" or "Portrait". This selection affects the width and height values returned by the node, ensuring that your image dimensions match the intended orientation. The default setting is "Portrait", which is ideal for vertical compositions, but you can switch to "Landscape" for horizontal layouts, depending on your project's needs.

width

The width output provides the horizontal dimension of the image based on the selected resolution and aspect ratio. This value is crucial for ensuring that your image fits the intended format and maintains the correct proportions, which is essential for achieving the desired visual impact in your projects.

height

The height output gives the vertical dimension of the image, corresponding to the chosen resolution and aspect ratio. Like the width, this value is important for maintaining the correct proportions and ensuring that your image is appropriately sized for its intended use, whether it's for digital displays, print media, or other applications.

  • Use the resolution parameter to quickly select a size that matches the common formats for your project, saving time on manual calculations.
  • Adjust the aspect parameter to ensure your image orientation aligns with your creative vision, whether you need a landscape or portrait layout.

Invalid resolution or aspect selection

  • Explanation: This error occurs when a resolution or aspect value is not recognized by the node.
  • Solution: Ensure that you select a resolution and aspect from the provided options. Double-check the spelling and format of your selections.

Mismatched aspect ratio

  • Explanation: This issue arises when the selected aspect ratio does not match the intended use of the image.
  • Solution: Verify that the aspect ratio you choose aligns with the requirements of your project. If necessary, switch between "Landscape" and "Portrait" to achieve the desired orientation.

SDXL Recommended image sizes Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Jjk-Nodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.

SDXL Recommended image sizes