ComfyUI Node

ScaleTo

Multiply width and height by scale and round to the nearest integers. Exact halfway values round to the nearest even integer. Also return the input scale unchanged.

By lany42·Created 2 days ago·Updated about 21 hours ago· 0
ScaleTo
    • target_width
    • target_height
    • scale
    ◄width1024►
    ◄height1024►
    ◄scale1.00►
    CategoryLany Nodes

    Inputs (3)

    NameTypeDefaultDescription
    widthINT10240–9007199254740991—
    heightINT10240–9007199254740991—
    scaleFLOAT1.00—

    Outputs (3)

    NameTypeDescription
    target_widthINT—
    target_heightINT—
    scaleFLOAT—