Nodes/Enviral Design Node Pack/WAN Resolution Snap
ComfyUI Node

WAN Resolution Snap

Turns a preset or typed custom resolution into divisor-safe dimensions for WAN video workflows.

By EnviralDesign·Created 4 months ago·Updated 26 days ago· 1
WAN Resolution Snap
    • width
    • height
    • width_float
    • height_float
    • summary
    presetcustom
    width512
    height512
    snapnearest
    divisible_by32
    swapfalse
    CategoryEnviralDesign/video

    Inputs (6)

    NameTypeDefaultDescription
    presetCOMBOcustom15 options: custom, 512 x 512, 640 x 640, 704 x 704, 768 x 768, 1024 x 1024, +9
    widthINT5121–16384Used when preset is custom. Unsafe values are snapped internally.
    heightINT5121–16384Used when preset is custom. Unsafe values are snapped internally.
    snapCOMBOnearestHow to quantize width and height to the selected divisor.
    divisible_byINT321–1024
    swapBOOLEANfalse

    Outputs (5)

    NameTypeDescription
    widthINT
    heightINT
    width_floatFLOAT
    height_floatFLOAT
    summarySTRING