]> git.donarmstrong.com Git - lilypond.git/commitdiff
Use -depth 8 for compare/composite. Drop border around image. release/2.11.3-1
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Dec 2006 12:50:41 +0000 (13:50 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Dec 2006 12:50:41 +0000 (13:50 +0100)
buildscripts/output-distance.py

index 787c3a71a7bb94974a345454d49f607ace137e64..fd09f02a5a1f69e1ff7924d523dda1bd5f287ac6 100644 (file)
@@ -296,14 +296,14 @@ def compare_png_images (old, new, dir):
     dims = (min (dims1[0], dims2[0]),
             min (dims1[1], dims2[1]))
 
-    system ('convert -crop %dx%d+0+0 %s crop1.png' % (dims + (old,)))
-    system ('convert -crop %dx%d+0+0 %s crop2.png' % (dims + (new,)))
+    system ('convert -depth 8 -crop %dx%d+0+0 %s crop1.png' % (dims + (old,)))
+    system ('convert -depth 8 -crop %dx%d+0+0 %s crop2.png' % (dims + (new,)))
 
-    system ('compare crop1.png crop2.png diff.png')
+    system ('compare -depth 8 crop1.png crop2.png diff.png')
 
-    system ("convert diff.png -border 2 -blur 0x3 -negate -channel alpha,blue -type TrueColorMatte     -fx 'intensity'    matte.png")
+    system ("convert  -depth 8 diff.png -blur 0x3 -negate -channel alpha,blue -type TrueColorMatte -fx 'intensity'    matte.png")
 
-    system ("composite matte.png %(new)s %(dest)s" % locals ())
+    system ("composite -depth 8 -type Palette matte.png %(new)s %(dest)s" % locals ())
 
 class FileLink:
     def __init__ (self):