Nodes/ComfyUI-QuickMode/QuickMode Size Preset
ComfyUI Node

QuickMode Size Preset

Drop the stack of EmptyLatentImages — one dropdown does it

By yanadere0549·Created 2 months ago·Updated 2 months ago· 0
QuickMode Size Preset
    • width
    • height
    • latent
    preset1024x1024 正方形
    swapfalse
    custom_width1024
    custom_height1024
    batch_size1

    The anti-spaghetti resolution node

    If you've ever built a workflow that switches resolutions, you know the pattern: a row of EmptyLatentImage nodes, one at 1024x1024, one at 1216x832, one at 832x1216, each with its own pair of number widgets to maintain. QuickMode Size Preset collapses that pile into one node: pick a preset from a dropdown and you get width, height, and a ready-made latent out the other side.

    Inputs & outputs

    • preset - dropdown with 22 entries: 21 named presets plus custom.
    • swap - BOOLEAN, default False. Flip it and width/height are exchanged (the quick way to go from landscape to portrait).
    • custom_width / custom_height - INT, 64–8192, step 8, used when preset is custom.
    • batch_size - INT, 1–64.

    Outputs: width (INT), height (INT), latent (LATENT).

    The presets come in two families. The 1024 set is your SDXL-era default: 1024x1024, plus the 896x1152 / 1152x896, 832x1216 / 1216x832 ("+"), and 768x1344 / 1344x768 ("++") aspect-ratio pairs. The second family keeps every preset at roughly 1.64M total pixels - 1280x1280, 2:3, 3:4, 4:5, IMAX 1.43:1, golden ratio 1.618:1, 16:9, cinemascope 2.35:1, anamorphic 2.39:1, and a few more - so switching aspect ratios doesn't secretly change your VRAM bill. (512x512 is the odd one out, included for pure-speed drafts.)

    How it works

    No magic here. The node resolves the preset to a width/height, applies swap if set, then calls the core EmptyLatentImage node's generate() with those numbers. Same empty latent, same downstream behavior - it's literally EmptyLatentImage with a nicer face and a resolution dropdown bolted on. It even adds one-click preset buttons on the node itself (auto-generated from the node definition, everything except custom) and a "反転 ↕" button that flips the swap widget.

    Why you'd reach for it

    Two reasons. First, the obvious one: resolutions become a named choice instead of two number fields you have to remember - "was it 1152x896 or 896x1152?" Second, it plugs straight into the pack's draft/production setup. Drop two of these into a QuickMode If - small preset on on_false, big preset on on_true - and one flip of a QuickMode Condition switches the whole graph's resolution in one shot.

    Install & gotchas

    Same as the rest of the pack, which means refreshingly little:

    cd ComfyUI/custom_nodes
    git clone https://github.com/yanadere0549/ComfyUI-QuickMode
    

    restart, or ComfyUI Manager → "ComfyUI-QuickMode". No dependencies, no model downloads.

    • custom has to be selected from the dropdown. Any other unknown string passed in raises an "unknown preset" error - don't try to hand-type one.
    • Width/height are multiples of 8, enforced by the step 8 on the custom fields. You won't sneak a 1000-wide custom size in through the widget.
    • Wire the latent output straight to KSampler.latent_image; keep width/height for i2i and resize steps that need the raw numbers.

    If your workflow already drags in a "resolution picker" pack from somewhere else, compare notes - but for the QuickMode workflow, this is the one to use.

    CategoryQuickMode

    Inputs (5)

    NameTypeDefaultDescription
    presetCOMBO1024x1024 正方形22 options: 1024x1024 正方形, 896x1152 縦長, 1152x896 横長, 832x1216 縦長+, 1216x832 横長+, 768x1344 縦長++, +16
    swapBOOLEANfalse
    custom_widthINT102464–8192
    custom_heightINT102464–8192
    batch_sizeINT11–64

    Outputs (3)

    NameTypeDescription
    widthINT
    heightINT
    latentLATENT