ComfyUI Node

Resolution

Pack a width and height into one wire, and why your workflow wants it

By iguanesolutions·Created 12 months ago·Updated 9 months ago· 4
Resolution
    • RESOLUTION
    width3840
    height2160

    The Resolution node is the quiet workhorse of the IG1 Tools pack: you give it a width and a height, and it hands you back one bundled IG1_RESOLUTION value. That's the whole job. No math, no model loading, no hidden state. Which makes it sound pointless - until you've built a workflow where "the resolution" has to travel through five nodes and you're sick of dragging two separate INT wires along for the ride.

    Think of it as a typed value object for the graph. Everything else in this pack speaks IG1_RESOLUTION and IG1_ASPECTRATIO, so Resolution is how a real-world width and height get into that world. The pack's entire pitch - it shows up in ComfyUI Manager as "Flux Resolution" - is automated high-res generation, and this node is the front door: type your target once, pass the bundle down the line, and let the Resolution Advisor figure out what your model can actually do with it.

    It also carries the author's own defaults, which tells you the target audience: width defaults to 3840, height to 2160 - 4K, 16:9. The allowed envelope is 1–7680 wide and 1–4320 tall, so anything short of a billboard fits.

    Under the hood it's a struct wrapper: the node builds a Resolution(width, height) object and pushes it out a single output. The nice touch is the preview - you get something like 3840×2160 (16:9 @ 8.29MP) rendered right on the node. Because the type has a friendly string representation, you can also read it with ComfyUI's Preview Any node, which is a genuinely handy debugging trick for a bundle type you can't see inside otherwise.

    The inputs and output that matter

    Two inputs, one output. That's it.

    • width - INT, default 3840, range 1–7680
    • height - INT, default 2160, range 1–4320
    • RESOLUTION output - the packed IG1_RESOLUTION, which plugs straight into IG1ResolutionProperties, IG1ResolutionAdvisor, and the rest of the IG1 family

    Where people get burned: the RESOLUTION output is a custom type, not two INTs. You can't drop it onto a KSampler's width pin or an Empty Latent's width - the wire won't connect. If you need plain numbers back in the normal world, run it through Resolution Properties first, which unpacks width, height, megapixels and aspect ratio. Resolution only packages; it never sets the generation size. More than one beginner grabs it expecting it to control the sampler, and it doesn't - it's the value, not the controller.

    Install

    The pack installs like any other:

    • ComfyUI Manager → "Install via Git URL" → https://github.com/iguanesolutions/comfyui-ig1-tools.git (or search for Flux Resolution).
    • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/iguanesolutions/comfyui-ig1-tools, then restart ComfyUI.

    The best part: no model downloads and no exotic dependencies. The requirements are requests, aiohttp, torch, numpy and Pillow - all already present in a stock ComfyUI. This is as light as a custom node pack gets.

    The nodes land under the IG1 Tools category, and if they don't appear after install, it's almost always a forgotten restart. One caveat worth knowing: the pack is written against ComfyUI's newer comfy_api node framework, so keep ComfyUI reasonably up to date or the nodes may fail to register. If you're on a year-old install, update before blaming the pack.

    CategoryIG1 Tools

    Inputs (2)

    NameTypeDefaultDescription
    widthINT38401–7680The resolution width
    heightINT21601–4320The resolution height

    Outputs (1)

    NameTypeDescription
    RESOLUTIONIG1_RESOLUTIONThe packed resolution