Newer versions of ImageMagick seem to be more picky about comparing
images that are not very similar.
I don't know any further details, but this patch fixes `make check' for
me when comparing release/2.13.7-1 with release/2.13.8-1.
I am running ImageMagick 6.5.7-10.
Graham adds: I bumped imagemagick in GUB, and this is required to
do 'make check' in ubuntu lilydev remix, so I'm adding this now.
system ('convert -depth 8 -crop %dx%d+0+0 %s %s/crop1.png' % (dims + (old, dir)))
system ('convert -depth 8 -crop %dx%d+0+0 %s %s/crop2.png' % (dims + (new, dir)))
- system ('compare -depth 8 %(dir)s/crop1.png %(dir)s/crop2.png %(dir)s/diff.png' % locals ())
+ system ('compare -depth 8 -dissimilarity-threshold 1 %(dir)s/crop1.png %(dir)s/crop2.png %(dir)s/diff.png' % locals ())
system ("convert -depth 8 %(dir)s/diff.png -blur 0x3 -negate -channel alpha,blue -type TrueColorMatte -fx 'intensity' %(dir)s/matte.png" % locals ())