Nodes/ComfyUI-Pixaroma/Switch WH Pixaroma
ComfyUI Node

Switch WH Pixaroma

Switch WH Pixaroma - pick width/height from one of two input sources with a single click. Wire two W/H pairs (for example a Load Image Pixaroma's WIDTH/HEIGHT and a Resolution Pixaroma's width/height) into the A and B inputs, then click A or B on the node to choose which pair flows through to the output. Lets you flip between the source image's native size and a manually chosen resolution without rewiring cables. If only one pair is wired, that pair is used regardless of the toggle - so you can leave the unused inputs disconnected during early workflow setup.

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Switch WH Pixaroma
    • width
    • height
    width_a
    height_a
    width_b
    height_b
    Category👑 Pixaroma/🔀 Logic & Flow

    Inputs (4)

    NameTypeDefaultDescription
    width_aoptINTWidth of source A (e.g. a Load Image Pixaroma's width). Click A on the node to send the A pair to the output.
    height_aoptINTHeight of source A. Pairs with width_a.
    width_boptINTWidth of source B (e.g. a Resolution Pixaroma's width). Click B on the node to send the B pair to the output.
    height_boptINTHeight of source B. Pairs with width_b.

    Outputs (2)

    NameTypeDescription
    widthINTThe width from the active (highlighted) source.
    heightINTThe height from the active (highlighted) source.