ComfyUI Node
AspectRatioResolution
Calculates a resolution from an aspect ratio, target megapixels, and pixel multiple.
AspectRatioResolution
- width
- height
◄aspect_ratio▾►
◄megapixels1.00►
◄multiple16►
Categorymath/graphics
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 11 options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, +5 | |
| megapixels | FLOAT | 1.00 | — |
| multiple | INT | 161–512 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |