ComfyUI Node
Calculate Resolution (Aspect + Megapixels)
A ComfyUI node in utils with 4 inputs and 2 outputs.
Calculate Resolution (Aspect + Megapixels)
- width
- height
◄aspect_width16►
◄aspect_height9►
◄megapixels0.37►
◄multiple_of32►
Categoryutils
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_width | INT | 161–100 | Aspect ratio width (e.g. 16 for 16:9) |
| aspect_height | INT | 91–100 | Aspect ratio height (e.g. 9 for 16:9) |
| megapixels | FLOAT | 0.370.1–4 | — |
| multiple_of | INT | 321–128 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |