Nodes/ComfyUI Level Pixel/Resize Image To Target Size [LP]
ComfyUI Node

Resize Image To Target Size [LP]

A quick resize with three fixed presets and four algorithms

By LevelPixel·Created 2 years ago·Updated 6 months ago· 31
Resize Image To Target Size [LP]
  • image
  • IMAGE
resize_method
target_size

Not every resize needs to be a full upscaling pipeline. Sometimes you just need an image at one of a few standard sizes before it hits the next node - a preview, a batch export, feeding something with a fixed input expectation - and this node is the no-frills way to do it: pick a preset size, pick an algorithm, done.

What it does

This is a plain interpolation resize, not a generative one - it adds or removes pixels through standard image-scaling math, the same category as Lanczos or a classic ESRGAN pass rather than anything diffusion-based. That means it's fast, free of any model weights, and incapable of inventing detail: it can't hallucinate texture that wasn't there, which is exactly what you want when the source is already sharp and you just need it at a different size. If you actually need a generative upscaler to add detail to a soft or low-resolution source, this isn't that tool - this one only ever works with what's already in the image.

Inputs and outputs that matter

  • image (required) - what you're resizing.
  • resize_method - a dropdown with exactly four options: LANCZOS, BICUBIC, BILINEAR, NEAREST. Lanczos is generally the sharpest choice for photographic detail and the closest thing to a default-safe pick; Bicubic is a reasonable, slightly softer middle ground; Bilinear is cheaper and softer still; Nearest is the odd one out - it doesn't blend pixels at all, which makes it the wrong choice for photos but the right one for pixel art or anything where you specifically don't want smoothing (a mask, for instance).
  • target_size - also a dropdown, not a free-typed number: exactly three fixed presets, 1000, 2000, and 9000 pixels. If none of those match what you actually need, this isn't the node for a custom target - the pack's separate Resize Image and Masks node (not covered here) is the one built for arbitrary sizes and for keeping an image and its mask in sync.

Output: a single IMAGE, resized.

Installing it

Through ComfyUI Manager, search "ComfyUI Level Pixel" or "ComfyUI-LevelPixel." Or by hand:

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

Restart ComfyUI. No model downloads - interpolation resizing needs nothing beyond what ComfyUI already has.

Where people get burned

The fixed preset list is the thing that catches people off guard first: if you're expecting a slider or a number field for target_size and only find a three-option dropdown, that's not a bug - 1000/2000/9000 is genuinely the full range this node offers. For anything outside those three values, look elsewhere in the pack.

The other common mistake is picking Nearest for a photo out of habit (it's often the fastest option in other tools) - on anything with soft gradients or fine detail it'll look visibly blocky, since it's not blending pixels at all. Save Nearest for pixel art, masks, or anything where crisp hard edges without blending is actually the goal, and default to Lanczos for everything else unless you have a specific reason not to.

CategoryLevelPixel/Image

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
resize_methodCOMBO4 options: LANCZOS, BICUBIC, BILINEAR, NEAREST
target_sizeCOMBO3 options: 1000, 2000, 9000

Outputs (1)

NameTypeDescription
IMAGEIMAGE