I am looking for a way to get the Bitwise XOR of two images on the command line(or in another way that can be implemented in a program or script).
This should result in the same final picture as using the XOR Blending mode in picture editors that support it (Paint.NET, Photoshop, etc)
As an example, say I have Image A:
and Image B:
then the result should look like:
The fun part of this is of course, that when you XOR image C with image B again, you will get an exact copy of image A.
Now, I have been looking all over the internet for a way to do this programmatically, but I have found nothing. Even ImageMagick does not support doing a bitwise XOR on images.
Does sombebody know a way to do this?