Custom Size
Two number boxes that hand you clean width and height integers
- width
- height
Custom Size is about as simple as a node gets: a width box, a height box, and two INT outputs that repeat what you typed. That's it. No image math, no latent manipulation, nothing hidden. But boring doesn't mean useless - resolution widgets are a place where ComfyUI workflows quietly go wrong, and this node exists to keep that under control.
Why this matters more than it looks
Two reasons you'd reach for it instead of typing numbers into an Empty Latent Image widget.
First, it turns a widget into a wire. The whole point of a node like this is that its outputs can be connected to other things. Drive an Empty Latent Image's width/height, an image resize, or an RvTools pipe's dimension slots from one place, and you only edit one number instead of hunting through a workflow. In the RvTools style of building, the pipe carries width and height around with it, and this node is the natural source for those slots.
Second, it enforces the 8-step. Width and height here are clamped to a step of 8 (minimum 16, up to 32768). That's the multiples-of-8 constraint that SD-family models are trained against - resolutions that aren't divisible by 8 produce worse or even broken results, and it's a top-tier "why is my output weird" cause. The step of 8 is ComfyUI gently holding your hand so you can't type 1005 and silently degrade your output.
There's a third, smaller nicety: the default is 512×512, which is sensible for SD 1.5-style work, but if you're on SDXL or Flux you'll be changing it - 1024×1024 is the home position for those. Nothing about the node is model-aware; it just passes through what you give it.
What's on the node
width(default 512, 16–32768, step 8) →widthINT outputheight(default 512, 16–32768, step 8) →heightINT output
Both outputs are plain INTs, ready to wire anywhere a resolution is expected.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2
# restart ComfyUI
Or search "ComfyUI-RvTools_v2" in ComfyUI Manager. No models, no heavy deps beyond the pack's standard torch/numpy/Pillow/opencv-python/pilgram.
The caveat that applies to every node in this pack
It's flagged as unmaintained - the README recommends ComfyUI_Eclipse as the successor, and the original RvTools repo was deleted from GitHub in early 2025, breaking shared workflows that depended on it (there's a whole r/comfyui thread of people hand-copying the folder between installs to recover). v2 is the renamed, still-loading version. For a node this trivial, migration is barely a thought - but if you're cloning a workflow that needs it, v2 is what installs cleanly, and Eclipse is what you'd move to for new work.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 51216–32768 | — |
| height | INT | 51216–32768 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |