ComfyUI Node
Resolution Selector from Dimensions (rholdorf)
Same math as the built-in Resolution Selector, but the aspect ratio is auto-detected from a reference (width, height) pair instead of being picked from a combo. Output dimensions still honor megapixels and multiple.
Resolution Selector from Dimensions (rholdorf)
- width
- height
- aspect_ratio
◄width1024►
◄height1024►
◄megapixels1.0►
◄multiple8►
Categoryrholdorf/utils
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 10241–16384 | Reference width — only used to detect the closest aspect ratio. |
| height | INT | 10241–16384 | Reference height — only used to detect the closest aspect ratio. |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels. 1.0 MP ≈ 1024x1024 for square. |
| multiple | INT | 88–128 | Nearest multiple to snap the result to. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| aspect_ratio | STRING | — |