summaryrefslogtreecommitdiff
path: root/tests/test_cmdline_tool.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-xtests/test_cmdline_tool.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py
index 43ceda0..ebe802e 100755
--- a/tests/test_cmdline_tool.py
+++ b/tests/test_cmdline_tool.py
@@ -76,8 +76,15 @@ def compare_default(resultfilename):
return True
def compare_png(resultfilename):
-# args = [expectedfilename, resultfilename, "-alpha", "Off", "-compose", "difference", "-composite", "-threshold", "10%", "-blur", "2", "-threshold", "30%", "-format", "%[fx:w*h*mean]", "info:"]
- args = [expectedfilename, resultfilename, "-alpha", "Off", "-compose", "difference", "-composite", "-threshold", "10%", "-morphology", "Erode", "Square", "-format", "%[fx:w*h*mean]", "info:"]
+ #args = [expectedfilename, resultfilename, "-alpha", "Off", "-compose", "difference", "-composite", "-threshold", "10%", "-blur", "2", "-threshold", "30%", "-format", "%[fx:w*h*mean]", "info:"]
+ #args = [expectedfilename, resultfilename, "-alpha", "Off", "-compose", "difference", "-composite", "-threshold", "10%", "-morphology", "Erode", "Square", "-format", "%[fx:w*h*mean]", "info:"]
+ # 'morphology' is only available in newer versions of ImageMagick.
+ # http://www.imagemagick.org/Usage/morphology/#alturnative
+ args = [expectedfilename, resultfilename, "-alpha", "Off",
+ "-compose", "difference", "-composite", "-threshold", "10%",
+ #"-morphology", "Erode", "Square",
+ "-gaussian-blur","3x65535", "-threshold","99.999%",
+ "-format", "%[fx:w*h*mean]", "info:"]
print >> sys.stderr, 'ImageMagick image comparison: convert ', ' '.join(args[2:])
print >> sys.stderr, ' expected image: ', expectedfilename
if not resultfilename:
contact: Jan Huwald // Impressum