ComfyUI Node
Resolution Selector MXD
Calculate width and height from aspect ratio and megapixel target, with a vertical toggle. Same math as core's Resolution Selector node, minus the separate portrait/landscape entries.
Resolution Selector MXD
- width
- height
◄aspect_ratioSquare (1:1)►
◄megapixels1.0►
◄verticalfalse►
◄multiple8►
CategoryMXD/Latent
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | Square (1:1) | 5 options: Square (1:1), Standard (4:3), Landscape (3:2), Widescreen (16:9), Ultrawide (21:9) |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels. 1.0 MP ≈ 1024x1024 for square. |
| vertical | BOOLEAN | false | — |
| multipleopt | INT | 88–128 | Round the calculated resolution to the nearest multiple of this value. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | Calculated width in pixels. |
| height | INT | Calculated height in pixels. |