Files
ComfyUI/tests-unit
Glary-Bot 6eb4f6f4cf Don't invert the alpha channel in the Invert Image node
ImageInvert applied 1.0 - image across the whole tensor, so a 4 channel
RGBA image came back with its transparency flipped: opaque pixels became
transparent and vice versa. Alpha stores coverage, not color, so leave it
alone and only invert RGB. Matches GIMP, ImageMagick and Blender, and the
existing srgb_to_linear/hlg_to_linear handling in nodes_images.py.

Reported in #5610.
2026-08-17 00:59:31 +00:00
..

Pytest Unit Tests

Install test dependencies

pip install -r tests-unit/requirements.txt

Run tests

pytest tests-unit/