> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ResolutionSelector - ComfyUI Built-in Node Documentation

> The Resolution Selector node calculates pixel width and height based on a chosen aspect ratio and a target total resolution in megapixels.

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 (step: 0.1) |
| `preview` | Live preview of the calculated output resolution. This read-only widget updates automatically and does not accept user input. | RESOLUTION\_PREVIEW | No | N/A |
| `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):** `dd4c7f977ed69a873a48da4b01c5c8f0b6563cfd743740235fc0ad5762579697`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.