ff5bd508e4e61250e118f87cbbdddaeb22128223
Made naming more consistent and added a toggle to force divisible by 16.
ComfyUI WanResolutions
ComfyUI custom node that outputs width and height presets for Wan 2.2 video generation.
What it does
- Lets you choose an
aspect_ratioand resolution quality tier - Outputs
INTvalues:width,height - Optional
IMAGEinput auto-matches the closest supported aspect ratio as an override - Optional
round_to_16snaps output to dimensions divisible by 16 while staying close to the target ratio - Keeps equivalent quality tier when you switch aspect ratios in the UI
Supported aspect ratios:
1:12:33:23:44:39:1616:9
Quality tiers per aspect ratio up to native Wan 2.2 quality.
Installation
Clone into your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/boobkake22/ComfyUI-WanResolutions.git
Restart ComfyUI after installing.
Usage
- Add the
WanResolutionsnode. - Pick
aspect_ratioandresolution. - Optional: enable
round_to_16for dimensions divisible by 16. - Optional: connect an
IMAGEinput to auto-select the nearest aspect ratio. - Connect
widthandheightoutputs to your downstream nodes.
License
Apache-2.0. See LICENSE.
Languages
Python
70.1%
JavaScript
29.9%