Nodes/Klinter_nodes/Size Selector - klinter
ComfyUI Node

Size Selector - klinter

One dropdown, sane preset dimensions, done

By klinter007·Created 3 years ago·Updated 9 months ago· 19
Size Selector - klinter
    • width
    • height
    • name
    size_selected

    Size Selector - klinter is the answer to a boring but real problem: ComfyUI has no built-in "give me a sensible preset size" dropdown. You type 1024x1024 or 768x432 into an Empty Latent every time, or you keep a stash of size nodes from other packs. This one ships its own curated list of presets and hands you width, height, and a friendly name in one shot.

    The presets live in a sizes.json file inside the pack, and that's the part worth understanding because it's the whole design. The list is anchored around phone and landscape orientations: a ladder of 9:16 portrait sizes from 288x512 up to 720x1280, a matching 16:9 landscape ladder from 512x288 to 1280x720, plus 3:2, 2:3, and 1:1 at a couple of tiers. The author's own naming scheme (tiny/small/mid/large/native) tells you how they think about it - these are tuned around video-friendly resolutions, which matches the pack's video-extension focus. If you're generating for short-form video, this list is basically a cheat sheet.

    The dropdown shows each option as WIDTHxHEIGHT - name (e.g. 720x1280 - native 9:16), so you can pick without doing mental math. Outputs are width (INT), height (INT), and name (STRING) - wire the two ints into an Empty Latent or whatever size input your pipeline uses. The name output is the friendly label, handy for logging or filename generation.

    The fair criticism: it's a fixed list. There's no "custom size" entry and no way to edit the presets from the UI - to add your own you'd edit sizes.json in the pack folder by hand (and re-check the dropdown after a restart). If you want arbitrary sizes with full control, the pack's AspectSelector computes any ratio against a base resolution instead. If you just want a curated set you can trust, this is it.

    Install is the pack standard: search "Klinter_nodes" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/klinter007/klinter_nodes then restart. No requirements.txt, no models - it's a JSON lookup plus three outputs.

    Reach for it when you're tired of remembering resolutions and want a dropdown that just works. It's not exciting, and it doesn't need to be.

    Categoryklinter

    Inputs (1)

    NameTypeDefaultDescription
    size_selectedCOMBO18 options: 288x512 - tiny 9:16, 432x768 - small 9:16, 504x896 - mid small 9:16, 576x1024 - large 9:16, 648x1152 - mid large 9:16, 720x1280 - native 9:16, +12

    Outputs (3)

    NameTypeDescription
    widthINT
    heightINT
    nameSTRING