Academia SD Resolution Selector ๐ฅ๏ธ
A resolution selector that never hands you a non-multiple of 8
- image
- WIDTH
- HEIGHT
Resolution is where a lot of otherwise-fine ComfyUI workflows quietly fail. Feed a sampler a width that isn't a multiple of 8 and you get a tensor dimension error at the worst moment; wander off your model's native resolution and the anatomy gets weird. The Academia SD Resolution Selector exists to make both problems impossible in one place: presets for sane SDXL-era resolutions, width/height widgets that lock to 8-pixel steps, and a button that reads the resolution straight off a reference image.
How it works
The node keeps it dead simple. preset gives you eight choices - 1024x1024, 848x1264, 1264x848, 768x1376, 896x1200, 1376x768, 1200x896, or Custom - and the width and height INTs (64โ8192, step 8) hold the active values. The two outputs are WIDTH and HEIGHT, which you wire into an Empty Latent node or a sampler's resolution input. Because the widgets step by 8, whatever you type is forced onto the 8-multiple grid that keeps Flux and LTX-Video happy.
The standout feature is the optional image input. Connect a Load Image node, hit the ๐ button in the node, and it reads the reference image's exact resolution and adopts it as width and height. That's a genuinely useful trick for image-to-image and video work where you want the output to match the input frame size exactly, without doing mental math about multiples.
The inputs that matter
- preset - quick pick; "Custom" just unlocks free width/height entry.
- width / height - the actual values that flow out, always multiples of 8.
- image (optional) - the reference for the "get size" button.
Install
Pack install: ComfyUI Manager โ "AcademiaSD", or git clone https://github.com/AcademiaSD/comfyui_AcademiaSD, restart. No extra dependencies.
Where it stands
It's a clean, focused little node - fewer presets than some competing resolution selectors, no aspect-ratio-megapixel math (that's the pack's other node, Resolution Calc), and no automatic suggestion of your model's native size. What it does well, it does exactly: predictable resolutions, locked to the safe grid, with one-click matching of a source image. If your workflow already has a resolution node you like, you don't need this one. If you're still hand-typing 1345x983 into an Empty Latent and wondering why it breaks, this is a quiet fix that never complains - because it never lets you.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | 1024x1024 | 8 options: 1024x1024, 848x1264, 1264x848, 768x1376, 896x1200, 1376x768, +2 |
| width | INT | 102464โ8192 | โ |
| height | INT | 102464โ8192 | โ |
| imageopt | IMAGE | โ |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| WIDTH | INT | โ |
| HEIGHT | INT | โ |