picA.png ^ picB.png = picC, in such a way that:
picA.png ^ picC.png = picB.png, and
picB.png ^picC.png = picA.png
(If you didn't know the ^ is the symbol for bitwise XOR in most programming languages)
I read about the -compose Difference and the -compose Exclusion commands, but those do not give the correct results:
this does not work, shouldEqualPicA is not equal to picA. I'm left with some garbage. The same for difference.convert picA.png picB.png -compose exclusion -composite picC.png
convert picC.png picB.png -compose exclusion -composite shouldEqualPicA.png
Is there some other command I'm failing to see? Or is there another way to archieve this with ImageMagick?