Height
The vertical half of your dimensions, in one place
- height
HeightNode is the mirror image of the pack's WidthNode: one node, one integer out, designed to be the single place your workflow's image height lives. It outputs a pixel height, you wire that into any height input - EmptyLatentImage, an image resize, an upscale - and when you change it here, everything connected follows. If you've converted a height widget to an input on a couple of nodes in the same graph, this is the knob you turn instead of hunting for widgets.
It's honest to admit this one is a utility, not a marvel. Its job is to stop you from having three height fields drift out of sync in a workflow you reuse. Same reasoning, same caveat as the WidthNode: if your graph has one latent and nothing else cares about the height, you don't need this node. It shines in comparison branches, hires-fix pipelines, or any workflow you share and come back to months later.
How it works
Two inputs, one real: height (default 512, min 64, step 8) and preset (default custom). The presets are 640, 768, 832, 896, 1024, 1152, 1216, 1344, and 1536 - the standard SDXL/FLUX sizes - and choosing one overrides whatever's in the height field. custom passes your typed number straight through. The single height INT output is what you wire out.
The step-of-8 enforcement matters here more than it looks: latent dimensions that aren't multiples of 8 fail at VAE decode time, and it's a miserable failure mode to debug. The node just won't let you enter a bad value. Both the typed input and every preset are multiples of 8, so you're structurally safe.
Install
Easiest via ComfyUI Manager: search "ComfyUI_Selectors" and install. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/ComfyAssets/ComfyUI_Selectors.git
Then restart ComfyUI fully - no refresh, a real restart. No models download, no runtime dependencies (the repo's requirements-dev.txt is dev-only). The node appears under comfyassets/Dimensions.
The practical note: this pack's combined Width & Height node does this plus the width plus preset aspect ratios plus a portrait/landscape swap button in one box. For almost any real workflow the combined node is the better default. HeightNode is for the edge case where you only want the height exposed, or where width already comes from somewhere else in your graph.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| height | INT | 51264–16384 | Image height in pixels (must be multiple of 8) |
| preset | COMBO | custom | SDXL/FLUX height presets |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| height | INT | — |