ComfyUI Node Runs on cloud
Resolution Selector (RMBG) ⛶
Calculate width and height from aspect ratio and megapixel target. Also outputs an empty latent image so you can skip the Empty Latent Image node.
Resolution Selector (RMBG) ⛶
- latent
- width
- height
◄aspect_ratio1:1 (Square)►
◄megapixels1.00►
◄multiple8►
◄batch_size1►
Category🧪AILab/🖼️IMAGE
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 1:1 (Square) | The aspect ratio for the output dimensions. |
| megapixels | FLOAT | 1.000.01–16 | Target total megapixels. 1.0 MP ≈ 1024×1024 for square. |
| multiple | INT | 88–128 | Round the result to the nearest multiple of this value. |
| batch_size | INT | 11–4096 | Number of latent images in the batch. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | Empty latent image at the calculated resolution. |
| width | INT | Calculated width in pixels (rounded to the selected multiple). |
| height | INT | Calculated height in pixels (rounded to the selected multiple). |