Nodes/Allor Plugin/ImageFilterEdgeEnhance
ComfyUI Node

ImageFilterEdgeEnhance

Make existing edges say hi

By Nourepide·Created 3 years ago·Updated 2 years ago· 295
ImageFilterEdgeEnhance
  • images
  • IMAGE

ImageFilterEdgeEnhance from the Allor plugin does one thing: it makes the edges that are already in an image more pronounced. It's the PIL EDGE_ENHANCE filter as a node - zero inputs beyond the image, zero knobs, zero ways to break it. If an image feels a little soft at the boundaries - text that's lost its crispness, outlines that got smeared by a previous blur - this is a fast, gentle fix.

How it works

The PIL EDGE_ENHANCE filter runs a small convolution kernel that detects local intensity differences and amplifies them, so transitions between areas get a slightly harder, more defined look while flat regions stay untouched. It's a relative of sharpening but aimed at edges specifically - the effect is more like "the outlines are now visible" and less like "everything got grainier." Because it's a fixed kernel, the output is predictable: it boosts, it doesn't create detail from nothing.

It uses the pack's PIL bridge under the hood (image → PIL → filter → tensor), which is a touch heavier than the pure-tensor nodes in this pack but irrelevant for a single pass.

Inputs and output

  • images - an IMAGE or a batch. The only input.
  • Output: an IMAGE with edges enhanced.

There's no strength control. If the bump isn't enough, you can stack a second pass (edge enhancement is fairly gentle, so doubling is safe), or run ImageFilterEdgeEnhance's sibling ImageFilterEdgeEnhanceMore if it exists in your version of the pack - that one is the stronger variant of the same idea.

Where it fits

It's a handy last-step fix before export when a render has gone soft, and it's genuinely useful as a preprocessing step for anything that keys off edges - a subtle edge boost can help an edge-based preprocessor find its footing without the noise a full sharpen would add. For a much more aggressive line-art result, ImageFilterContour in the same pack collapses the image into outlines instead.

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 launch installs rembg + onnx from requirements.txt - slow once - and no model downloads are needed here.

Gotchas

  • It can't rescue an image with no edges to enhance; on an already-soft source the effect can look like slight grain rather than sharpness.
  • Fixed strength means you can't tune it down. If it's too much, blend the output back with the original at partial opacity.
  • Pack-wide update gotcha: Allor's repo was rebased to strip old images from history, so old clones can fail on git pull. Re-clone if auto-update errors.
Categoryimage/filter

Inputs (1)

NameTypeDefaultDescription
imagesIMAGE

Outputs (1)

NameTypeDescription
IMAGEIMAGE