Nodes/ComfyUI/Resolution Selector
ComfyUI Node Runs on cloud

Resolution Selector

Calculate width and height from aspect ratio and megapixel target. Useful for setting up Empty Latent Image dimensions.

By Comfy-Org·Created 4 years ago·Updated 15 days ago· 121,575
Resolution Selector
    • width
    • height
    aspect_ratio1:1 (Square)
    megapixels1.0
    multiple8
    Categoryutilities

    Inputs (3)

    NameTypeDefaultDescription
    aspect_ratioCOMBO1:1 (Square)The aspect ratio for the output dimensions.
    megapixelsFLOAT1.00.1–16Target total megapixels. 1.0 MP ≈ 1024x1024 for square.
    multipleINT88–128Nearest multiple of the result to set the selected resolution to.

    Outputs (2)

    NameTypeDescription
    widthINTCalculated width in pixels multiplied by the selected multiple.
    heightINTCalculated height in pixels multiplied by the selected multiple.