Nodes/Dream Project Animation Nodes/πŸ–Ό Image Color Shift
ComfyUI Node

πŸ–Ό Image Color Shift

Per-channel color grading with three multipliers β€” the knob the palette nodes turn

By alt-key-projectΒ·Created 3 years agoΒ·Updated 2 years agoΒ· 114
πŸ–Ό Image Color Shift
  • image
  • image
β—„red_multiplier1.00β–Ί
β—„green_multiplier1.00β–Ί
β—„blue_multiplier1.00β–Ί

Some color nodes try to be clever about hue and saturation. Image Color Shift [Dream] isn't - it multiplies the red, green, and blue channels of an image by three separate factors and hands the result back. Set them all to 1 and nothing changes; drop green to 0.8 and the image goes slightly magenta; pump red to 1.3 and the whole frame warms up. That's it. It's the color-grade equivalent of a three-knob mixer.

It's from the Dream Project Animation Nodes pack (alt-key-project), the 2023 Deforum-style animation toolkit, and it's the output side of the pack's best trick - automatic color coherence.

How it works

Inputs: image, plus red_multiplier, green_multiplier, and blue_multiplier (each FLOAT, default 1, min 0). Output: image.

In the source it's a single Pillow color-matrix conversion - each channel scaled independently, with no cross-channel mixing (no tint bleeding from red into blue, unlike a naive hue shift). That makes it predictable: a factor of 0 zeroes a channel, 1.0 is neutral, above 1 boosts, below 1 dims. If you set all three multipliers to the same value, it behaves like a brightness adjustment - the node list literally describes it as "adjust the colors (or brightness) of an image."

Because all three factors are sockets, you can drive them from curves for animated grading, or from other Dream nodes that output multipliers.

The workflow it was built for

The pack's flagship feature (announced on r/comfyui back in 2023) is palette-based color coherence for long animations. The loop: sample a palette from your reference image, sample one from the current frame, run them through Compare Palettes, and feed the resulting red_multiplier/green_multiplier (and brightness) straight into this node. Frame after frame the image gets pushed back toward the reference's colors instead of drifting. That's the fix for the "my animation slowly turns green / gets darker / washes out" problem that plagues Deforum-style renders.

If you're not doing palettes, it's still a handy live grade: warm a scene with red 1.1 / blue 0.9, cool it the other way, or animate the tint across a transition. The multipliers are cheap and reversible, which is more than you can say for most grading.

Installing

cd ComfyUI/custom_nodes
git clone https://github.com/alt-key-project/comfyui-dream-project.git

Or via ComfyUI Manager under "Dream Project Animation". No model downloads; the pack needs imageio, scipy, torchvision, pilgram, and evalidate - and it pins numpy<2.0, so that's where to look first if you hit a NumPy error. Find it under Dream β†’ image β†’ color.

Category✨ Dream/πŸŒ„ image/🎨 color

Inputs (4)

NameTypeDefaultDescription
imageIMAGEβ€”
red_multiplierFLOAT1.00β€”
green_multiplierFLOAT1.00β€”
blue_multiplierFLOAT1.00β€”

Outputs (1)

NameTypeDescription
imageIMAGEβ€”