π Image Invert
Black to white, white to black β a color invert that doesn't touch your alpha
- image
- image
Every now and then you need a color negative of an image. Maybe you're making an invert-for-controlnet trick, checking the light values, or deliberately generating something in negative space. π Image Invert is the single-purpose node for it: image in, image out, with each RGB channel subtracted from 1. Black becomes white, white becomes black, and every color lands at its complement.
That last part - RGB channels - is the subtle detail worth knowing. The node inverts color, not alpha. A mask input fed through it won't get its transparency inverted, because it's an image-to-image node operating on RGB. If you want to invert a mask, use a mask-inverting node instead; if you want the pixels inverted, this is your tool.
Like the pack's flip node, it's batch-safe - a multi-frame tensor comes out with every frame inverted, intact as a batch. Nothing to configure, nothing to tune, no dependencies beyond what ComfyUI ships.
When you'd actually use it
- Inverted masks-as-images: some ControlNet preprocessors and workflows expect a negative of a region map, and inverting a rendered map is one node instead of a whole conditional graph.
- Light-to-dark pass: check whether an image reads correctly in negative (a quick composition sanity check).
- A deliberate aesthetic: negative-space posters and inverted-photo looks are a one-node detour from any existing generation.
Installing it
It ships in the Louis Use pack:
cd ComfyUI/custom_nodes
git clone https://github.com/LouisLU1997/ComfyUI-louis-use Louis_use
Or search "Louis Use" in ComfyUI Manager and restart.
This is a utility node with no settings and no surprises, which is exactly what you want from a utility node. You'll reach for it rarely, but when you do it's the difference between a two-node detour and rebuilding a graph.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |