Nodes/cubicj-comfy-nodes/Calculate Resolution (Aspect + Megapixels)
ComfyUI Node

Calculate Resolution (Aspect + Megapixels)

A ComfyUI node in utils with 4 inputs and 2 outputs.

By cubicj·Created 3 months ago·Updated 3 months ago· 0
Calculate Resolution (Aspect + Megapixels)
    • width
    • height
    aspect_width16
    aspect_height9
    megapixels0.37
    multiple_of32
    Categoryutils

    Inputs (4)

    NameTypeDefaultDescription
    aspect_widthINT161–100Aspect ratio width (e.g. 16 for 16:9)
    aspect_heightINT91–100Aspect ratio height (e.g. 9 for 16:9)
    megapixelsFLOAT0.370.1–4
    multiple_ofINT321–128

    Outputs (2)

    NameTypeDescription
    widthINT
    heightINT