WAN Resolution Picker
Stop guessing what's divisible by 16
- width
- height
Wan is picky about resolution in a way that will cost you an afternoon if you ignore it. The Wan 2.1/2.2 family expects dimensions that divide cleanly by 16, and if you feed an Empty Latent Image a random 512x512 you're fighting the VAE instead of using it. WAN Resolution Picker is a two-int-out node that spits out width and height for the presets the author actually tests against, so you stop doing the mental math.
It's part of Mickmumpitz-Nodes, the pack behind Mickmumpitz's long-form video workflows - the same person whose iterative Wan builds you've probably seen on YouTube. Think of this node as the "pick from the menu" helper in the pack's utilities drawer. There's a sibling LTX Resolution Picker in the same pack if you switch models.
How it works
The presets are hardcoded for Wan 2.1 compatibility and all land on multiples of 16:
- 512p → 912x512
- 576p → 1024x576
- 720p → 1280x720
- 1024p square → 1024x1024
- Custom → your own
custom_width/custom_height
Pick a preset, pick an aspect ratio, and it does the rest: 9:16 (Vertical) swaps width and height, 1:1 (Square) returns a square built from the preset's height. That last one is worth knowing - square 720p comes out 720x720, not 1280x1280, which is probably what you wanted anyway for a square latent.
The inputs that matter
- resolution - the preset menu, default 720p. That's also the sane default for Wan: the model is native 480p/720p, and 720p is where quality and VRAM stop fighting.
- aspect_ratio - 16:9, 9:16 Vertical, or 1:1 Square.
- custom_width / custom_height - only used when resolution is
Custom. Note the step is 16, so even hand-typed values stay VAE-friendly.
Wiring it up
Both outputs are plain INTs. Feed width and height into an Empty Latent Image (or a WanImageToVideo-style resolution slot) and you're done. The whole point is that you can change the preset once and every dependent node follows, instead of editing numbers in five places.
Install
It ships in Mickmumpitz-Nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/mickmumpitz/ComfyUI-Mickmumpitz-Nodes
restart ComfyUI - or search "Mickmumpitz" in ComfyUI Manager and hit Install. No models, no heavy deps; the pack only needs numpy/Pillow/opencv-python.
One honest caveat
A resolution picker doesn't make Wan faster - 720p is still VRAM-hungry (comfortably 24GB territory; 12GB means GGUFs and 480p). What it saves you is the "why is my video a smeared rectangle" debugging loop, and the "what resolutions does this model even accept" wiki crawl. That's a fair trade for a two-int node.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| resolution | COMBO | 720p | 5 options: 512p, 576p, 720p, 1024p square, Custom |
| aspect_ratio | COMBO | 16:9 | 3 options: 16:9, 9:16 (Vertical), 1:1 (Square) |
| custom_width | INT | 128064–8192 | — |
| custom_height | INT | 72064–8192 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |