ComfyUI Node Runs on cloud
Resolution Selector
Calculate width and height from aspect ratio and megapixel target. Useful for setting up Empty Latent Image dimensions.
Resolution Selector
- width
- height
◄aspect_ratio1:1 (Square)►
◄megapixels1.0►
◄multiple8►
Categoryutilities
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 1:1 (Square) | The aspect ratio for the output dimensions. |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels. 1.0 MP ≈ 1024x1024 for square. |
| multiple | INT | 88–128 | Nearest multiple of the result to set the selected resolution to. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | Calculated width in pixels multiplied by the selected multiple. |
| height | INT | Calculated height in pixels multiplied by the selected multiple. |