Nodes/ComfyUI-MaxedOut/Resolution Selector MXD
ComfyUI Node

Resolution Selector MXD

Calculate width and height from aspect ratio and megapixel target, with a vertical toggle. Same math as core's Resolution Selector node, minus the separate portrait/landscape entries.

By Maxed-Out-99·Created about a year ago·Updated 9 days ago· 9
Resolution Selector MXD
    • width
    • height
    aspect_ratioSquare (1:1)
    megapixels1.0
    verticalfalse
    multiple8
    CategoryMXD/Latent

    Inputs (4)

    NameTypeDefaultDescription
    aspect_ratioCOMBOSquare (1:1)5 options: Square (1:1), Standard (4:3), Landscape (3:2), Widescreen (16:9), Ultrawide (21:9)
    megapixelsFLOAT1.00.1–16Target total megapixels. 1.0 MP ≈ 1024x1024 for square.
    verticalBOOLEANfalse
    multipleoptINT88–128Round the calculated resolution to the nearest multiple of this value.

    Outputs (2)

    NameTypeDescription
    widthINTCalculated width in pixels.
    heightINTCalculated height in pixels.