summaryrefslogtreecommitdiffstats
path: root/09-image-diff.txt
blob: 7ecc0203b874d90d4efd44aa118a705f1e40979f (plain)
1
2
3
4
5
6
7
8
9
10
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

NB: see also img-diff in dotfiles.git/.bashrc