Nodes/ComfyUI-PBRFusion4/Clamp Resolution
ComfyUI Node

Clamp Resolution

If either width or height exceeds max_size, scales both dimensions down to fit within max_size while preserving aspect ratio. Outputs was_clamped=True if clamping occurred.

By Night1099·Created 6 months ago·Updated 3 months ago· 15
Clamp Resolution
    • width
    • height
    • was_clamped
    width1024
    height1024
    max_size2048
    CategoryPBRFUSION4/Utils

    Inputs (3)

    NameTypeDefaultDescription
    widthINT10241–16384
    heightINT10241–16384
    max_sizeINT204864–8192

    Outputs (3)

    NameTypeDescription
    widthINT
    heightINT
    was_clampedBOOLEAN