Nodes/Allor Plugin/ImageEffectsLensChromaticAberration
ComfyUI Node

ImageEffectsLensChromaticAberration

That purple fringe cheap lenses have, on demand

By Nourepide·Created 3 years ago·Updated 2 years ago· 295
ImageEffectsLensChromaticAberration
  • images
  • IMAGE
shift10
method
shift_type1
mixing_type1
transpose
colors
lens_curvy1.0

Chromatic aberration - the red/blue fringing you see on cheap lenses, especially toward the edges of the frame - is normally something you try to remove. But added deliberately, in small doses, it's one of the best cheap tricks for making a CG image feel like it was shot through real glass. ImageEffectsLensChromaticAberration from the Allor plugin is the one to reach for: it separates the color channels and shifts them against each other radially, which is exactly how the real artifact behaves.

How it works

The node splits the image into its red, green, and blue channels, then shifts two of them (which two is up to you via colors: rb for the classic red-blue fringe, rg, or gb) by a per-row amount. The shifts aren't constant - lens_curvy (1–15) controls a radial curve so the fringe grows toward the edges of the frame like it does on a real lens, instead of just sliding the whole image sideways.

The knobs you'll actually use:

  • shift - how many pixels the channels move at the extreme. Small numbers (3–15) read as "real lens"; big numbers read as "anaglyph glasses."
  • colors - rb is the realistic default; rg and gb give different fringe tints.
  • lens_curvy - how strongly the shift curves toward the frame edge. Higher = more corner-heavy.
  • method - how the shifted channels fill the gap: reflect, edge, or constant. reflect looks cleanest; constant can show dark bars.
  • shift_type (1–4) and mixing_type (1–4) - direction and symmetry of the shifts; 1 is the straightforward out-from-center look, the others flip or mirror it.

Output is a single IMAGE. It's a pure tensor operation on the batch, so it's fast and multi-image safe.

Installing it

It lives 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 and creates config.json; no model downloads for this node.

Gotchas

  • Subtlety is the whole game. If your image has text or fine detail, even shift 5 will look like a rendering bug rather than lens character. Start at 3 and nudge up.
  • lens_curvy interacts with shift; cranking both together produces a cartoonish anaglyph mess. Pick one dominant knob.
  • The output edges can expose the shifted channels with constant padding - switch to reflect if you see bars.
  • Pack-wide reminder: Allor's repo was rebased to shrink history, so an old clone can fail on git pull; re-clone if updates break.

ImageEffectsLensVignette plus a light dose of this node is the fastest way to make a render look shot-on-camera.

Categoryimage/effects/lens

Inputs (8)

NameTypeDefaultDescription
imagesIMAGE
shiftINT10
methodCOMBO3 options: reflect, edge, constant
shift_typeINT11–4
mixing_typeINT11–4
transposeCOMBO3 options: none, rotate, reflect
colorsCOMBO3 options: rb, rg, gb
lens_curvyFLOAT1.0

Outputs (1)

NameTypeDescription
IMAGEIMAGE