ChromaticAberration
Misaligning colors on purpose
- image
- IMAGE
The color fringing you see at the edges of cheap lenses - red and blue ghosting where light doesn't focus on the same plane - is usually a defect you fix. This node deliberately reintroduces it, because misaligned color channels are the fastest route to a glitch, VHS, or "shot on real glass" aesthetic. It's a tiny idea with a big personality: shift the red, green, and blue channels apart and suddenly a clean render looks like it went through a damaged signal path.
How it works
Each color channel gets rolled independently by its own shift value - the pixels just move sideways (or up/down) by a fixed offset. The channel wraps around the edges, so you get a visible seam of misplaced color on one side; that seam is part of the glitch look. All three channels have their own shift and direction, which is more control than most tools in this genre give you.
- red_shift, green_shift, blue_shift (−20 to 20, default 0) - how far each channel travels, in pixels. This is the entire creative range. Keep shifts around 2–5 for a believable lens-flare fringe; 10+ and it's full glitch-art territory.
- red_direction, green_direction, blue_direction -
horizontalorverticalper channel. Mixing directions (red left, blue down) is where the interesting looks live. One implementation note: the vertical direction internally flips the sign so a positive shift moves up, which is just something to know when you're dialing it in.
Output is a single IMAGE.
Install
ChromaticAberration is one of ~22 nodes in ComfyUI-post-processing-nodes.
- ComfyUI Manager: search "post processing nodes", install, restart.
- Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes
Restart after. No requirements.txt or downloads - it's pure torch.roll per channel. It's under postprocessing → Effects in the node menu.
The settings that work
The subtle move is red +3, blue −3, both horizontal: you get the classic magenta/green fringe on high-contrast edges without the whole image going haywire - the "real photo" fake-out. For an actual glitch, crank red to 12 horizontal and blue to −8 vertical; the seam becomes a design element. One caution: at high shifts the wrapped color band at the edge is obvious, so if you're exporting for a portfolio, crop a little. Everything else just sits at 0 until you want it.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| red_shift | INT | 0-20–20 | — |
| red_direction | COMBO | 2 options: horizontal, vertical | |
| green_shift | INT | 0-20–20 | — |
| green_direction | COMBO | 2 options: horizontal, vertical | |
| blue_shift | INT | 0-20–20 | — |
| blue_direction | COMBO | 2 options: horizontal, vertical |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |