ImageEffectsLensChromaticAberration
That purple fringe cheap lenses have, on demand
- images
- IMAGE
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-rbis the realistic default;rgandgbgive 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, orconstant.reflectlooks cleanest;constantcan show dark bars.shift_type(1–4) andmixing_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
shift5 will look like a rendering bug rather than lens character. Start at 3 and nudge up. lens_curvyinteracts withshift; cranking both together produces a cartoonish anaglyph mess. Pick one dominant knob.- The output edges can expose the shifted channels with
constantpadding - switch toreflectif 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.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| shift | INT | 10 | — |
| method | COMBO | 3 options: reflect, edge, constant | |
| shift_type | INT | 11–4 | — |
| mixing_type | INT | 11–4 | — |
| transpose | COMBO | 3 options: none, rotate, reflect | |
| colors | COMBO | 3 options: rb, rg, gb | |
| lens_curvy | FLOAT | 1.0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |