Nodes/ComfyUI-AC_FUNV2.0/Image_分辨率选择工具
ComfyUI Node

Image_分辨率选择工具

Pick your resolution from a dropdown, not a calculator

By A719689614·Created 3 years ago·Updated 14 days ago· 12
Image_分辨率选择工具
    • HEIGTH
    • WIDHT
    • STRING
    Resolution_List

    Typing width and height into Empty Latent Image every time is fine until you start switching aspect ratios a lot. Image_分辨率选择工具 (resolution selection tool) is the ComfyUI-AC_FUNV2.0 pack's answer: one dropdown of fifteen common resolutions, and it hands you the numbers.

    The list runs from 512*512 up to 3840*2160, with the usual suspects in between - 768×768, 1024×1024, 1280×720, 1600×900, 1920×1080, 2560×1440. Pick one and the node splits the string on the *, converts both halves to integers, and puts them on three outputs: HEIGTH (INT), WIDHT (INT), and a STRING in height,width form.

    Here's the thing to check before you wire it up: the node treats the first number as the height. The source does height, width = string.split('*'), and the output sockets are literally named HEIGTH and WIDHT - yes, both misspelled, that's the author's own label. So 1280*720 doesn't give you the landscape 1280-wide × 720-tall you might expect; it gives you height 1280, width 720, which is a tall portrait crop. It's an easy transpose to make silently. Wire HEIGTH → the height input on Empty Latent and WIDHT → width, double-check once with a square resolution, and you're fine. Square values (1024*1024) are safe; the asymmetric ones will bite you if you guess.

    Which means this node is really only trustworthy as a preset picker if you know the convention - or you deliberately use the transpose to get portrait/landscape variants from the list. The STRING output ("512,768", comma-joined) is handy for anything that wants the pair as text, like filename templates.

    How it differs from the rest of the pack: unlike the season prompt nodes, you can't add your own entries. The resolution_list is hardcoded in the Python source, not read from a folder. If you want a resolution that isn't in the list, you either edit AC_FUNV2.py or just type the numbers into Empty Latent like the rest of us. This is a convenience node, not a library.

    Install is the pack standard:

    cd ComfyUI/custom_nodes
    git clone https://github.com/A719689614/ComfyUI-AC_FUNV2.0
    

    restart, and it lives under ♑AC_FUNV2.0. No models, no dependencies beyond stock ComfyUI (skip the torch==2.11.0 pin in requirements.txt if it complains; nothing here uses it).

    The honest verdict: it's a small quality-of-life thing. If you render at two or three fixed resolutions, this saves you a little typing and makes your workflow self-documenting - the chosen resolution is visible on the node instead of buried in an Empty Latent. If you do a lot of arbitrary sizes, you'll hit the hardcoded list's limits fast and end up back at the built-in. Either way, mind the height/width swap and you're golden.

    Category♑AC_FUNV2.0

    Inputs (1)

    NameTypeDefaultDescription
    Resolution_ListCOMBO15 options: 512*512, 512*768, 768*768, 832*832, 768*896, 960*560, +9

    Outputs (3)

    NameTypeDescription
    HEIGTHINT
    WIDHTINT
    STRINGSTRING