ComfyUI Node
Ratio to Size 988
Pick an aspect ratio and target megapixel count to get optimal width and height (multiples of 64) within a precision tolerance.
Ratio to Size 988
- width
- height
- info
◄ratio▾►
◄megapixel1.05►
◄precision0.30►
Category🦇988/Image
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| ratio | COMBO | 16 options: 1:1 ◻, 5:4 ▭, 4:3 ▭, 3:2 ▭, 16:9 ▭, 2:1 ▭, +10 | |
| megapixel | FLOAT | 1.050.1–3 | — |
| precision | FLOAT | 0.300–1 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | Optimal width (multiple of 64) |
| height | INT | Optimal height (multiple of 64) |
| info | STRING | Summary of selected parameters |