Invert
The negative node with more uses than you'd guess
- image
- image
IsekaiInvert flips every color in an image to its opposite - black becomes white, red becomes cyan, and you get a photographic negative. There's no parameter to configure and nothing to break, which is exactly why it's still worth a page: inversion is one of those effects people only think of when they need it, and then they need it right now.
How it works
It converts the image to PIL, ensures it's in RGB mode, and applies ImageOps.invert. That's the entire mechanism - a per-channel value remap where each pixel goes from v to 255 − v. No resampling, no blending, no settings. It's as deterministic as a node gets.
Where it earns its keep:
- Stylized negatives - the obvious one. A full negative can look genuinely striking on the right subject, and it's a one-node effect in a graph where reproducing it manually would be a math chain.
- Mask inversion - the genuinely useful one. Inverting a mask flips "keep this" into "change this." If you've got an inpainting or compositing workflow with the mask polarity backwards, an invert node is the fastest fix there is.
- Texture work - inverting a texture before it feeds into a bump or displacement-style use can flip the relief direction, which is a trick people discover late and use forever.
The inputs
image- the image to invert.
That's the whole input list. Output is a single image tensor.
Installing it
Ships in isekai-comfy-node:
ComfyUI Manager: search "isekai" → install isekai-comfy-node → restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/isekai-sh/isekai-comfy-node
cd isekai-comfy-node
pip install -r requirements.txt
Restart and it's under Isekai → Image/Effects. Pillow and requests only; no models, no downloads.
Common issues
The only real limitation is the pack-wide one: batched images get their first frame inverted, and everything runs in RGB so any alpha channel is dropped. If you're inverting an RGBA image, re-add the alpha afterward or you'll lose transparency.
One thing that trips people up: if your "inverted" image doesn't look like a negative, check whether you're actually feeding the node an image and not a mask. Masks are grayscale by nature, so inverting a mask just flips black and white - correct behavior, but it can look "wrong" if you expected a color negative. Know what you're inverting and the output will make sense.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |