ComfyUI Node
Ino Megapixel Resolution
Calculate width and height from megapixels and aspect ratio.
Ino Megapixel Resolution
- width
- height
- aspect_ratio_x
- aspect_ratio_y
- aspect_ratio
◄megapixels1.00►
◄aspect_ratio1:1 Square►
◄custom_aspect_ratio►
◄divisible_by16►
CategoryInoImageHelper
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| megapixels | FLOAT | 1.000.01–100 | — |
| aspect_ratio | COMBO | 1:1 Square | 17 options: 1:1 Square, 9:16 Vertical Video, 16:9 Widescreen, 4:5 Social Media, 5:4 Classic Monitor, 3:4 Tablet, +11 |
| custom_aspect_ratio | STRING | — | |
| divisible_by | INT | 161–512 | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| aspect_ratio_x | INT | — |
| aspect_ratio_y | INT | — |
| aspect_ratio | STRING | — |