Aspect Ratio Properties
Turn a ratio back into numerator, denominator, and a number you can compare
- aspect_ratio
- NUMERATOR
- DENOMINATOR
- VALUE
Aspect Ratio Properties is the smallest node in the IG1 Tools pack, and it does exactly one thing: takes an IG1_ASPECTRATIO value and unpacks it into its three plain forms - numerator, denominator, and the float value of the division. It's a leaf node, the final step in the resolution/ratio unpacking chain, and it exists so your workflow can actually decide things based on shape.
Where it fits: in this pack, aspect ratios travel as a single custom-type value. Resolution Properties hands you an ASPECT_RATIO output, but you can't compare a custom type to anything. Feed that output here and you get numbers you can wire into math nodes, conditional branches, or anything else that needs a plain value.
The three outputs
One input - aspect_ratio (an IG1_ASPECTRATIO) - and three outputs:
NUMERATOR- INT, the top of the ratioDENOMINATOR- INT, the bottom of the ratioVALUE- FLOAT, the ratio as a decimal (numerator / denominator)
The ratio arrives already simplified to its lowest terms - a 1920×1080 resolution's aspect ratio comes through as 16:9, not 1920:1080 - and VALUE is just 16 ÷ 9 ≈ 1.7778. That's the output you'll actually use in practice, because it's what you compare against thresholds or feed into a switch. The numerator/denominator pair is mostly useful when you want to reconstruct a ratio cleanly without rounding.
When you actually need it
Honestly? Only in automation. If you're hand-driving a workflow, you can read the ratio off the node previews and set things yourself. Where this node earns its keep is the scenario the whole pack targets: a fully conditional pipeline where the graph has to decide on its own - "if the ratio is wider than 16:9, generate landscape and pad; otherwise, crop" - and needs a comparable number to make that call. It's also handy for logging or debugging: VALUE is the one output you can drop into a text/math chain without fighting a custom type.
There's no real setup here and nothing to tune. If your workflow never branches on shape, this node is skippable - that's fine. It's a utility leaf, not a feature.
Install
Part of the IG1 Tools pack, listed as "Flux Resolution" in ComfyUI Manager. Install via "Install via Git URL" with https://github.com/iguanesolutions/comfyui-ig1-tools.git, or clone into ComfyUI/custom_nodes and restart. It has no model downloads and no dependencies beyond what ComfyUI already ships, so install is a two-minute job with a mandatory restart at the end. Nodes appear under the IG1 Tools category.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | IG1_ASPECTRATIO | The aspect ratio you want to extract properties from |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| NUMERATOR | INT | The aspect ratio numerator |
| DENOMINATOR | INT | The aspect ratio denominator |
| VALUE | FLOAT | The aspect ratio value |