# Resolution Selector

The Resolution Selector node calculates pixel width and height based on a chosen aspect ratio and a target total resolution in megapixels. It is useful for generating consistent dimensions for other nodes, such as the Empty Latent Image node.

## Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `aspect_ratio` | The aspect ratio for the output dimensions (default: `"1:1 (Square)"`). | COMBO | Yes | `"1:1 (Square)"`<br>`"2:3 (Portrait Photo)"`<br>`"3:2 (Photo)"`<br>`"3:4 (Portrait Standard)"`<br>`"4:3 (Standard)"`<br>`"9:16 (Portrait Widescreen)"`<br>`"16:9 (Widescreen)"`<br>`"21:9 (Ultrawide)"` |
| `megapixels` | Target total megapixels. 1.0 MP ≈ 1024x1024 for square (default: 1.0). | FLOAT | Yes | 0.1 - 16.0 |
| `multiple` | Nearest multiple of the result to set the selected resolution to (default: 8). | INT | No | 8 - 128 (step: 4) |

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `width` | Calculated width in pixels multiplied by the selected multiple. | INT |
| `height` | Calculated height in pixels multiplied by the selected multiple. | INT |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ResolutionSelector/en.md)

---
**Source fingerprint (SHA-256):** `2060bbeb6583f09014045a19462cf22a231975831b1b3b6d9374753030857e1b`
