ComfyUI Node
Advanced Resolution Selector
Selects a deterministic, multiple-aligned image resolution from canonical or custom aspect ratios.
Advanced Resolution Selector
- width
- height
- resolved_aspect_ratio
- resolved_direction
- actual_megapixels
- pixel_error_percent
- aspect_error_percent
◄output_modefixed►
◄aspect_ratio1:1►
◄directionlandscape►
◄custom_ratio_width1►
◄custom_ratio_height1►
◄megapixels1.0►
◄multiple8►
◄seed0►
CategoryComfyUI Text Processor/Image
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| output_mode | COMBO | fixed | Select fixed, seeded direction randomization, seeded preset and direction randomization, or seeded ratio randomization with the selected direction. |
| aspect_ratio | COMBO | 1:1 | Choose one canonical ratio or provide a positive custom ratio pair. |
| direction | COMBO | landscape | Choose the resolved orientation; randomize and randomize_all may replace it, while fixed and randomize_ratio preserve it. |
| custom_ratio_width | INT | 11–10000 | Positive custom ratio width; used when aspect_ratio is custom. |
| custom_ratio_height | INT | 11–10000 | Positive custom ratio height; used when aspect_ratio is custom. |
| megapixels | FLOAT | 1.00.1–16 | Binary 1024 squared pixel budget before multiple alignment. |
| multiple | INT | 88–128 | Align both dimensions to this positive multiple. |
| seed | INT | 00–4294967295 | Explicit uint32 seed for deterministic randomized modes. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| width | INT | Aligned output width in pixels. |
| height | INT | Aligned output height in pixels. |
| resolved_aspect_ratio | STRING | Canonical or reduced custom ratio label before direction is reported separately. |
| resolved_direction | STRING | Resolved landscape or portrait direction. |
| actual_megapixels | FLOAT | Realized binary megapixels after multiple alignment. |
| pixel_error_percent | FLOAT | Signed realized pixel-area error percentage. |
| aspect_error_percent | FLOAT | Signed realized aspect-ratio error percentage. |