Skip to content

Instantly share code, notes, and snippets.

@mrmitew
Last active March 6, 2019 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmitew/1c2125c280809de9cba12e74e3e24412 to your computer and use it in GitHub Desktop.
Save mrmitew/1c2125c280809de9cba12e74e3e24412 to your computer and use it in GitHub Desktop.
Compare the difference between two images in Git using ImageMagic.
[diff "image"]
command = /path/to/diff-images.sh
#!/bin/sh
compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title "$1" -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment