Free Resolution Selector
Like the built-in ResolutionSelector, but with a freely configurable aspect ratio instead of a fixed dropdown.
Features:
- Any aspect ratio via two numeric fields (e.g. 16:10, 21:9, 7:5)
- Target size in megapixels
- Rounding to a multiple of your choice (8–128)
- Live preview of the resulting resolution and actual megapixels
- Swap button to flip between landscape and portrait
- Width and height as separate INT outputs, usable with any empty latent node
Outputs an empty latent (16 channels, 8x downscale). Tested with Anima, Flux 2, Krea 2 and SDXL.
Installation:
1. Download and unzip
2. Move the folder "ComfyUI-X4Lch3mist" into ComfyUI/custom_nodes/
3. Restart ComfyUI
You'll find the node under utils/latent.
GitHub version coming soon
After the Early Access period, this node will also be available on GitHub as part of the X4Lch3mist node pack, including installation via git:
cd ComfyUI/custom_nodes
git clone https://github.com/X4Lch3mist/ComfyUI-X4Lch3mist.gitDescription
Initial release.






