Nodes/ComfyUI-RMBG/Resolution Selector (RMBG) ⛶
ComfyUI Node Runs on cloud

Resolution Selector (RMBG) ⛶

Calculate width and height from aspect ratio and megapixel target. Also outputs an empty latent image so you can skip the Empty Latent Image node.

By 1038lab·Created 2 years ago·Updated 3 days ago· 2,159
Resolution Selector (RMBG) ⛶
    • latent
    • width
    • height
    ◄aspect_ratio1:1 (Square)►
    ◄megapixels1.00►
    ◄multiple8►
    ◄batch_size1►
    Category🧪AILab/🖼️IMAGE

    Inputs (4)

    NameTypeDefaultDescription
    aspect_ratioCOMBO1:1 (Square)The aspect ratio for the output dimensions.
    megapixelsFLOAT1.000.01–16Target total megapixels. 1.0 MP ≈ 1024×1024 for square.
    multipleINT88–128Round the result to the nearest multiple of this value.
    batch_sizeINT11–4096Number of latent images in the batch.

    Outputs (3)

    NameTypeDescription
    latentLATENTEmpty latent image at the calculated resolution.
    widthINTCalculated width in pixels (rounded to the selected multiple).
    heightINTCalculated height in pixels (rounded to the selected multiple).