ComfyUI Node

ImageScale

Scale a whole image by one number

By TeaCrab·Created 3 years ago·Updated 5 months ago· 5
ImageScale
  • image
  • IMAGE
factor1.00

Sometimes you don't care about exact dimensions - you want the image half the size, or double, or 0.75×, and you want it expressed as a multiplier instead of two pixel counts. ImageScale is a two-input node that does exactly that: image in, factor in (default 1, range 0.2–5), resized IMAGE out. That's the whole thing, and it's surprisingly handy.

It's part of the small ComfyUI-TeaNodes pack by TeaCrab, MIT-licensed, found under TeaNodes/Image.

How it works

It reads the image's height and width, multiplies both by factor, and runs the result through ComfyUI's common_upscale with Lanczos resampling. A 2024 update to the pack switched it to Lanczos specifically so it scales cleanly at non-power-of-two factors - the previous version apparently got blocky anywhere that wasn't a clean 2× or 0.5×. So a 1.37× upscale is now a normal operation instead of a compromise.

When you'd reach for it

The author's own suggested use is saving in-process scrap images at half or quarter resolution - batch outputs you don't care about at full size, so you shrink them before they hit the disk. It's also the lazy-man's approach to a preview branch (feed a low factor into a save node to make contact sheets cheap), or a quick upscale when you want to nudge something up without thinking in pixels.

One input genuinely matters: factor. Below 1.0 it shrinks, above 1.0 it grows, and it's a FLOAT with 0.01 steps, so 0.5, 1.5, 2.5 are all one drag away.

Where it bites

It has no notion of a target resolution, so a 4096×4096 image at factor 5 stays exactly as heavy as you'd expect - watch VRAM if you scale up a large image in a busy graph. And remember Lanczos only resamples; it adds no detail. If your goal is more detail, this isn't an upscaler, it's a resampler - the KB's upscaling essay puts Lanczos in the "more pixels, no new content" bucket, which is where this node lives too. For quality gain you want a generative upscale path instead.

Installing it

ComfyUI Manager → search ComfyUI-TeaNodes, or:

cd ComfyUI/custom_nodes
git clone https://github.com/TeaCrab/ComfyUI-TeaNodes

then restart ComfyUI. No models, no heavy deps - the pack's only declared requirement is the author's regex_spm helper.

It's the simplest node in the pack and it knows it. If you resize by factor more often than by target size, this replaces a two-widget node with a single slider, and that's a fair trade.

CategoryTeaNodes/Image

Inputs (2)

NameTypeDefaultDescription
imageIMAGE
factorFLOAT1.000.2–5

Outputs (1)

NameTypeDescription
IMAGEIMAGE