ComfyUI Node Runs on cloud

ChromaticAberration

Misaligning colors on purpose

By EllangoK·Created 3 years ago·Updated 2 years ago· 256
ChromaticAberration
  • image
  • IMAGE
red_shift0
red_direction
green_shift0
green_direction
blue_shift0
blue_direction

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 - horizontal or vertical per 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.

Categorypostprocessing/Effects

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
red_shiftINT0-20–20
red_directionCOMBO2 options: horizontal, vertical
green_shiftINT0-20–20
green_directionCOMBO2 options: horizontal, vertical
blue_shiftINT0-20–20
blue_directionCOMBO2 options: horizontal, vertical

Outputs (1)

NameTypeDescription
IMAGEIMAGE