Last active
July 11, 2017 02:04
-
-
Save kencoba/4e28189487c7e8453bd66e3fc8889e74 to your computer and use it in GitHub Desktop.
compute diffs for each png files in the directory.
This file contains 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
#!/usr/bin/env zsh | |
if [ $# -ne 2 ]; then | |
echo "$# args specified" 1>&2 | |
echo "usage: sh ./diffs.sh marker_filename target_directory" 1>&2 | |
exit 1 | |
fi | |
for target in $2/*.png | |
do | |
result=`compare -metric AE $1 $target - 2>&1 >/dev/null` | |
echo $result $1 $target | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment