Int to WidthHeight Tuple
Carry a resolution around as one wire instead of two
- wxh
Width and height travel in pairs everywhere in ComfyUI, but the graph treats them as two separate wires you have to run side by side. ZeugIntToWxH is the pack's answer to that nagging annoyance: it bundles two integers into a single "WxH" value so a resolution can move through your workflow as one wire, then get unpacked where it's needed.
What it is
ZeugIntToWxH lives in the zeug → Convert menu. Two integer inputs - width and height - each clamped to 1–8192 with a default of 512. One output, wxh, which is a custom WxH type: under the hood it's just a (width, height) tuple, but ComfyUI treats it as a first-class type on the wire.
The README frames this as one of the pack's core "missing features": a way to specify width/height tuples instead of juggling two loose numbers. If you've ever dragged two parallel wires across a large graph and lost track of which is which, you already feel the pull.
When you'd reach for it
- Grouping a resolution so it stays together while you reorganize the graph - one wire is a lot easier to route than two.
- Defining the resolution once (paired with a ZeugInt or directly in the widgets) and unpacking it later with ZeugWxHToInt wherever width and height are actually needed - an Empty Latent, an image scaler, a VAE encode.
- Keeping a resolution consistent across a workflow instead of retyping 512 twice in different places.
The honest caveat, before you build around it: the WxH type is pack-private. Nothing outside comfyui-zeug understands a WxH wire, so the only consumer for this node's output is the pack's own ZeugWxHToInt. You can't wire wxh into an Empty Latent and expect it to work. Treat this as a graph-organizing tool, not a universal resolution data type.
How it works
Mechanically trivial: the node returns (width, height) as a tuple, wrapped so ComfyUI sees it as the WxH type. What matters is the discipline it imposes - the pair can't get separated, and the width/height relationship survives being moved around the graph intact.
How to install it
Part of comfyui-zeug (German for "gear" or "stuff"), a small GPL-3.0 collection by Adrian Schubek:
- ComfyUI Manager: search
zeugin the Custom Nodes Manager, install ComfyUI-Zeug. - Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/adrianschubek/comfyui-zeug
Restart ComfyUI. No dependencies, no model downloads - the pack only uses torch and ComfyUI's own modules.
Common issues
The main confusion is the type scope above: people grab wxh, try to feed it to a standard node, and get a connection error. That's expected - unpack it with ZeugWxHToInt first. Second, remember the output is only usable by this pack; if you're sharing a workflow with someone who doesn't have comfyui-zeug installed, their copy will show this as a missing node. Fine for personal graphs, a small tax on shareability.
For tidying up a resolution-heavy workflow, though, it does exactly what it says on the tin.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5121–8192 | — |
| height | INT | 5121–8192 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| wxh | WxH | — |