summaryrefslogtreecommitdiffstats
path: root/09-image-diff.txt
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-26 19:24:12 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-26 19:24:12 +0200
commit6ae07c4b883180151e916983c6000e6cda7ced6f (patch)
treecfeb2b12d735156f53bc042dbcc825c4f9603aee /09-image-diff.txt
parenta888a46854e6010d442e3cc17c1bde37f2127542 (diff)
downloadtips-tricks-6ae07c4b883180151e916983c6000e6cda7ced6f.tar.gz
tips-tricks-6ae07c4b883180151e916983c6000e6cda7ced6f.tar.xz
tips-tricks-6ae07c4b883180151e916983c6000e6cda7ced6f.zip
09-image-diff.txt: on diffing images
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '09-image-diff.txt')
-rw-r--r--09-image-diff.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/09-image-diff.txt b/09-image-diff.txt
new file mode 100644
index 0000000..d26f534
--- /dev/null
+++ b/09-image-diff.txt
@@ -0,0 +1,8 @@
+install ImageMagick (yum install ImageMagick), then something like this:
+
+$ compare aaa.png bbb.png -highlight-color violet \
+ -lowlight-color darkgray -compose threshold jpg:- \
+ | convert jpg:- -fuzz 2% -fill red -opaque '#915e99' \
+ png:cmp-aaa-bbb.png
+
+will generate cmp-aaa-bbb.png effectively diffing bbb.png against aaa.png