Created
July 3, 2018 19:36
-
-
Save jdudek/d8a559a1045253b76dcc0f0bc4f5c138 to your computer and use it in GitHub Desktop.
Git: visual diff of images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.png diff=diff-image | |
*.jpg diff=diff-image | |
*.jpeg diff=diff-image | |
*.gif diff=diff-image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | open -a Preview.app -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global diff.diff-image.command '~/bin/diff-image' | |
git config --global core.attributesfile '~/.gitattributes' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment