I have the following issue. I have two images. Image 2 is basically Image 1 with an overlay. It's something that we added using a darkening blend-mode. The images are just grayscale images btw.
Now I'd like to create an new image, that contains only the difference between image 1 and 2. So a transparent png that if I just lay it over Image 1 without any blend mode, I'd have the same result as looking at image 2.
This is Image 1:
And this is Image 2:
I already played around a little bit with imagemagicks compare, but maybe I was missing the correct parameters, but I didn't get the result I am looking for...
The solution would need to be something that we can automate. So imagemagick would be awesome!