<snip> > Prompted by a couple of "use ImageMagick" responses I've fiddled about > some more and come up with 'convert a b -compose difference -composite' > which seems to do the trick. > > Was this what you were thinking?
No, they were probably thinking of ImageMagick's "compare" command. A
