Nodes/ComfyUI-988/Ratio to Size 988
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.

By kajan988·Created 2 months ago·Updated 21 days ago· 0
Ratio to Size 988
    • width
    • height
    • info
    ratio
    megapixel1.05
    precision0.30
    Category🦇988/Image

    Inputs (3)

    NameTypeDefaultDescription
    ratioCOMBO16 options: 1:1 ◻, 5:4 ▭, 4:3 ▭, 3:2 ▭, 16:9 ▭, 2:1 ▭, +10
    megapixelFLOAT1.050.1–3
    precisionFLOAT0.300–1

    Outputs (3)

    NameTypeDescription
    widthINTOptimal width (multiple of 64)
    heightINTOptimal height (multiple of 64)
    infoSTRINGSummary of selected parameters