Nodes/ComfyUI LC123 Nodes/LC Dimension Resize πŸ“
ComfyUI Node

LC Dimension Resize πŸ“

One value, both sides, no mental math

By lonecatone23Β·Created 2 months agoΒ·Updated 3 days agoΒ· 18
LC Dimension Resize πŸ“
  • value
  • width
  • height
β—„width1024β–Ί
β—„height1024β–Ί
β—„operationmultiplyβ–Ί

Every time you want a 1024Γ—1024 image at half resolution, you type 512 in two boxes and hope you didn't miss one. LC Dimension Resize (LCDimensionResize) is the node that ends that: feed it a width and height, pick add / subtract / multiply / divide, give it one value, and it applies the operation to both sides and rounds both results to integers. Width and height stay in sync, always.

It's a small arithmetic utility in the LC123/image category - not a resizer. It doesn't touch pixels. It computes numbers, which you then feed into an Empty Latent Image, an upscale, or a resolution-aware layout. Think of it as the "scale both dimensions by one number" calculator the native nodes never gave you.

The inputs

Four, and they're all obvious:

  • width, height (INT) - the source dimensions, in pixels.
  • value - the number to apply. This is where it gets nice: the input is a wildcard *, so you can type 0.5, or wire it from another node that outputs a float. It accepts INT or FLOAT.
  • operation - add, subtract, multiply, or divide. Multiply by 0.5 = half size. Divide by 2 = same thing. Add 128 = bump both sides.

Two outputs: width and height, as rounded INTs (the node keeps them at minimum 1px, so a divide-by-too-much doesn't produce a 0Γ—0 latent).

Why it exists

The friction it removes is real: aspect-ratio-preserving math is exactly the kind of thing you do wrong at 1am. This is the node you wire between a Get-Image-style source (the pack has LC Get Image for exactly this) and an Empty Latent, so your latent is always a clean multiple or fraction of your source. It also plays well in workflows that need to half-res a preview pass or scale a whole pipeline's resolution by a constant - one knob changes everything downstream that's wired to it.

Install

Part of ComfyUI_LC123_nodes:

cd ComfyUI/custom_nodes
git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes

or via ComfyUI Manager, then restart. It's pure integer math - no dependencies, no models, nothing to download. One note: the pack is a quiet utility collection, so there's no community lore to lean on here; the source in lc_dimension_resize.py is a few dozen lines and reads exactly like the docs. If the value input ever gives you trouble, remember it's a * wildcard - it accepts whatever number-shaped thing you throw at it.

CategoryLC123/image

Inputs (4)

NameTypeDefaultDescription
widthINT10241–65536Source width in pixels.
heightINT10241–65536Source height in pixels.
value*INT / FLOAT / number applied to both width and height.
operationCOMBOmultiplySame operation applied to width and height with value.

Outputs (2)

NameTypeDescription
widthINTβ€”
heightINTβ€”