Nodes/Allor Plugin/ImageFilterBoxBlur
ComfyUI Node

ImageFilterBoxBlur

The cheap workhorse blur

By Nourepide·Created 3 years ago·Updated 2 years ago· 295
ImageFilterBoxBlur
  • images
  • IMAGE
size_x10
size_y10

Every image toolkit needs a plain, fast, no-surprises blur, and in the Allor plugin that's ImageFilterBoxBlur. It's the "box" blur - each pixel becomes the average of the pixels in a square around it - which is about the simplest possible smoothing operation. No fancy edge logic, no curve shaping, just a quick soften you can drop in anywhere.

How it works

The node calls OpenCV's boxFilter with separate size_x and size_y kernel dimensions. Because the two sizes are independent, you can blur horizontally, vertically, or diagonally-skewed - set size_x high and size_y to 1 and you get a horizontal streak, which is handy for motion-feel backgrounds or anamorphic-style flares.

  • images - the IMAGE or batch.
  • size_x / size_y - kernel size in each direction. Higher = softer and slower; 1 = no blur on that axis.

Output is a single IMAGE, same size as the input. It processes the batch per-image through the pack's OpenCV helper, so multi-image workflows work but it's CPU-bound.

When to reach for it

Box blur is the right tool when you want a broad, even soften with no character - a background that needs to get out of the way, a glow base, or a pre-blur before another effect. It's also the cheapest blur in the pack per-pixel, so if you're doing heavy batch work and don't need Gaussian falloff, this is the one to use. For anything where you want smooth, camera-like falloff, the Gaussian variants look better.

Installing it

It's in the Allor pack:

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

Restart ComfyUI, or use ComfyUI Manager → Allor Plugin. First boot installs rembg + onnx and creates the pack's config.json; no model downloads.

Gotchas

  • Box blurs average in a hard square, which can give a slightly blocky, less organic result than Gaussian falloff. If it looks "griddy" at high sizes, that's the box filter working as intended - switch to ImageFilterGaussianBlur for smoother math.
  • Big kernel sizes are cheap but not free; a 100px box blur on a batch of 4K images will still make you wait.
  • Pack-wide update gotcha: Allor's repo was rebased to shrink history, so an old clone can fail on git pull; re-clone if auto-update breaks.

For a blur with nicer falloff, ImageFilterGaussianBlur is the direct upgrade; for edge-preserving smoothing, ImageFilterBilateralBlur.

Categoryimage/filter

Inputs (3)

NameTypeDefaultDescription
imagesIMAGE
size_xINT10
size_yINT10

Outputs (1)

NameTypeDescription
IMAGEIMAGE