ComfyUI Node
Resolution from PixelBudget
Calculate Width & Height from aspect ratio and Pixel Budget target, in 'multiple' multiples.
Resolution from PixelBudget
- width
- height
- longest
- megapixels
◄aspect_ratio▾►
◄pixelbudget▾►
◄multiple32►
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 | |
| pixelbudget | COMBO | 20 options: 240p, 360p, 480p, 544p, 640p, 720p, +14 | |
| multiple | INT | 321–112 | MiniMaxH3=32, Illustrious/Pony=8, other=16 |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| longest | INT | The larger of the width and height values (i.e. longest edge) |
| megapixels | FLOAT | The number of pixels for the calculated width and height, expressed in megapixels |