floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

CAS Aspect Ratio Presets Node for ComfyUI

1

Last updated
2025-06-12

Unlock the ability to generate empty latent tensors with precise aspect ratios and resolutions tailored for various models in ComfyUI. CASNodes (Custom Aspect Ratio Nodes) offers both preset selections and customizable options based on axis and ratio, enhancing your creative workflow.

  • Instant access to a variety of common aspect ratios and resolutions.
  • Compatibility with leading models such as Stable Diffusion 1.5, SDXL, Flux, Chroma, and HiDream.
  • Two operational modes: choose from presets or define custom dimensions by axis.

Context

CASNodes is a specialized tool designed for ComfyUI that facilitates the generation of empty latent tensors, crucial for image synthesis tasks. Its primary function is to streamline the process of selecting and applying aspect ratios and resolutions, making it easier for artists and developers to work with various AI models.

Key Features & Benefits

The tool boasts an instant dropdown menu that allows users to select from a range of popular image aspect ratios and sizes, ensuring quick access to commonly used configurations. It supports major models including Stable Diffusion 1.5, SDXL, Flux, Chroma, and HiDream, which means users can rely on it for a variety of projects without compatibility issues. Additionally, the integration is clean and unobtrusive, fitting seamlessly within the existing latent category of ComfyUI.

Advanced Functionalities

CASNodes provides two distinct modes for generating latents: "From Preset" and "By Axis." The "From Preset" mode allows users to choose from a curated list of aspect ratios and resolutions optimized for specific models, while the "By Axis" mode lets users input one dimension and automatically calculates the corresponding dimension based on the selected aspect ratio. This flexibility is particularly useful for users who need to create custom configurations quickly.

Practical Benefits

By utilizing CASNodes, users can significantly improve their workflow efficiency when working with ComfyUI. The ability to generate correctly sized empty latent tensors tailored to specific models reduces the time spent on adjustments and calculations, allowing for a more streamlined creative process. This tool enhances control over output quality by ensuring that aspect ratios and resolutions align perfectly with the requirements of chosen diffusion models.

Credits/Acknowledgments

The tool was developed by @budihartono and is open-source, encouraging contributions from the community. Users should note that while the project is available for use, support may be limited, and it is provided as-is for the benefit of all.