QuickMode Size Preset
Drop the stack of EmptyLatentImages — one dropdown does it
- width
- height
- latent
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 pluscustom.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 whenpresetiscustom.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.
customhas 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
latentoutput straight toKSampler.latent_image; keepwidth/heightfor 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.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | 1024x1024 正方形 | 22 options: 1024x1024 正方形, 896x1152 縦長, 1152x896 横長, 832x1216 縦長+, 1216x832 横長+, 768x1344 縦長++, +16 |
| swap | BOOLEAN | false | — |
| custom_width | INT | 102464–8192 | — |
| custom_height | INT | 102464–8192 | — |
| batch_size | INT | 11–64 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |
| latent | LATENT | — |