Image Resolution
Pick a resolution preset, get three clean integers
- width
- height
- batch_size
Image Resolution is the settings node that turns "I want a 1024Γ1024 generation" into three clean integers your workflow can feed around: width, height, and batch_size. No math, no remembering what 9:16 at SD1.5 native actually is - you pick a preset and the numbers come out the other side.
Why does that exist? The KB's plumbing doc has the phrase for it: "one source, many consumers." Instead of typing 1024 into a dozen widgets (and updating them all when you change your mind), you define the resolution once here and fan the outputs out. Change the preset, everything downstream follows. It's the resolution equivalent of a primitive/value node, and it stops the silent mismatch that happens when half your workflow says 1024 and the other half still says 896.
What you get
- resolution - a big preset combo covering the whole lineage:
512x512 (1:1 SD1.5), the SD1.5 portrait set,1024x1024 (1:1 XL/SD3/Flux/HiDream), Flux 2 / Krea / HiDream options, and more. There's a Custom entry that activates the width/height inputs. - width / height - used when Custom is selected (16β32768, stepped by 8).
- batch_size - how many images at once (1β64).
Outputs are exactly width, height, batch_size as INTs. Wire width β Empty Latent Image's width, height β its height, batch_size β its batch, and you've got a single point of control for the whole graph.
The workflow pattern
The genuinely useful setup is feeding it into the Eclipse pipe ecosystem or a sampler context - the pack's pipes carry dimensions as data, and this node is how you set them once. But even in a plain graph, the "one source" habit pays off: convert your KSampler widgets to inputs, feed them from this node, and flipping resolution becomes a dropdown change instead of a hunt through the canvas.
Installing
ComfyUI_Eclipse, r-vage's all-in-one pack. Manager β search ComfyUI_Eclipse, or:
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI_Eclipse
Restart; it's under Eclipse β Settings. Standard deps; the pack targets current ComfyUI (frontend 1.51.2+) and v4.0 removed legacy RvTools_v2 nodes (Migration Tool for old saves).
The subtlety worth knowing: the presets are model-flavored, and the flavor is a hint, not a law. 1024x1024 (1:1 XL/SD3/Flux/HiDream) is a sensible default for modern models, but you can absolutely feed SD1.5-native sizes from a Custom entry. And remember the node is a settings source, not a resizer - it doesn't touch pixels; if you want to change an existing image's size, that's Image Resize/Rescale. This one just emits numbers.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| resolution | COMBO | 1024x1024 (1:1 XL/SD3/Flux/HiDream) | Select a preset resolution or 'Custom' to enter custom dimensions. |
| width | INT | 102416β32768 | Custom width (used when 'Custom' is selected). |
| height | INT | 102416β32768 | Custom height (used when 'Custom' is selected). |
| batch_size | INT | 11β64 | Number of images to generate at once. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| width | INT | β |
| height | INT | β |
| batch_size | INT | β |