Searching for a way to do bitwise XOR on images
ImageMagick can do it, although it’s a bit convoluted. One way is: convert img1 img2 -fx “(((255*u)&(255*(1-v)))|((255*(1-u))&(255*v)))/255” img_out (img1,img2,img_out are the two input and single output file names respectively). Explanation It’s a bit ugly (I’m sure someone with more ImageMagick-fu than me could clean it up but it works like this: -fx “xxx” basically says … Read more