Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git: visual diff of images
*.png diff=diff-image
*.jpg diff=diff-image
*.jpeg diff=diff-image
*.gif diff=diff-image
#!/bin/bash
compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | open -a Preview.app -f
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
You can’t perform that action at this time.