Nodes/Parametric Studio/PSN Resolution Scaler
ComfyUI Node

PSN Resolution Scaler

Dynamically compute width/height from aspect ratio and megapixel budget.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN Resolution Scaler
    • width
    • height
    ◄aspect_ratio1.000►
    ◄target_megapixels1.000►
    ◄max_width2048►
    ◄max_height2048►
    ◄multiple_of8►
    CategoryParametric/Image

    Inputs (5)

    NameTypeDefaultDescription
    aspect_ratioFLOAT1.0000.0001–10000Aspect ratio. From 0.0001 to 10000. Default 1.0.
    target_megapixelsFLOAT1.0000.0001–10000Target megapixels. From 0.0001 to 10000. Default 1.0.
    max_widthINT20481–16384Max width. From 1 to 16384. Default 2048.
    max_heightINT20481–16384Max height. From 1 to 16384. Default 2048.
    multiple_ofINT81–1024Multiple of. From 1 to 1024. Default 8.

    Outputs (2)

    NameTypeDescription
    widthINT—
    heightINT—