ComfyUI Node
Resolution from Megapixels
Calculate Width & Height from aspect ratio and megapixel target, in 'step' multiples.
Resolution from Megapixels
- width
- height
- longest
◄aspect_ratio▾►
◄megapixels1.0000►
◄step32►
CategoryResolution Tools
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 15 options: 32:9 (Super Ultrawide), 21:9 (Ultrawide), 16:9 (Widescreen), 16:10 (WUXGA), 5:4 (5:4 Standard), 4:3 (Standard), +9 | |
| megapixels | FLOAT | 1.00000.05–50 | — |
| step | INT | 321–112 | MiniMaxH3=32, Illustrious/Pony=64, other=16 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| longest | INT | — |