Nodes/ComfyUI-Pixaroma/Portrait Landscape Pixaroma
ComfyUI Node

Portrait Landscape Pixaroma

Output a width and height in the orientation you pick. Enter your two dimensions (or wire them in from another node), then click Portrait or Landscape. Portrait gives the tall arrangement (the smaller number becomes the width), Landscape gives the wide arrangement (the larger number becomes the width). Flipping orientation is one click, with no need to keep two WH nodes and a switch. The order you enter the two numbers does not matter. Outputs width and height.

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Portrait Landscape Pixaroma
    • width
    • height
    width832
    height1216
    Category👑 Pixaroma/🔢 Values

    Inputs (2)

    NameTypeDefaultDescription
    widthINT8328–16384One of your two dimensions. Type a value or wire a number in. Portrait/Landscape decides whether this becomes the long or short side, so the order you enter the two numbers does not matter.
    heightINT12168–16384The other dimension. Type a value or wire a number in.

    Outputs (2)

    NameTypeDescription
    widthINTThe output width. In Portrait this is the smaller of your two numbers; in Landscape it is the larger.
    heightINTThe output height. In Portrait this is the larger of your two numbers; in Landscape it is the smaller.