ComfyUI Node
Smart Resolution
Picks a model-friendly resolution near a megapixel budget while preserving aspect ratio. Snaps to each preset's required divisor.
Smart Resolution
- width
- height
- scale
◄width1920►
◄height1080►
◄preset▾►
◄roundingnearest►
CategoryMoonPack/image
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 19201–16384 | Source width (aspect ratio is preserved). |
| height | INT | 10801–16384 | Source height. |
| preset | COMBO | Target model preset. | |
| rounding | COMBO | nearest | How to snap to the preset's divisor. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| scale | FLOAT | — |