Nodes/ComfyUI-InoNodes/Ino Megapixel Resolution
ComfyUI Node

Ino Megapixel Resolution

Calculate width and height from megapixels and aspect ratio.

By nobandegani·Created about a year ago·Updated 29 days ago· 5
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)

    NameTypeDefaultDescription
    megapixelsFLOAT1.000.01–100
    aspect_ratioCOMBO1:1 Square17 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_ratioSTRING
    divisible_byINT161–512

    Outputs (5)

    NameTypeDescription
    widthINT
    heightINT
    aspect_ratio_xINT
    aspect_ratio_yINT
    aspect_ratioSTRING