Skip to content

Instantly share code, notes, and snippets.

@codemonkey-uk
Created February 26, 2015 10:00
Show Gist options
  • Save codemonkey-uk/2a74eab11fe6d1539dce to your computer and use it in GitHub Desktop.
Save codemonkey-uk/2a74eab11fe6d1539dce to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $( ls *.jpg ); do
echo -n , $i
done
echo
for i in $( ls *.jpg ); do
echo -n $i
for j in $( ls *.jpg ); do
echo -n , $(compare -metric PSNR $i $j difference.png 3>&1 1>&2- 2>&3-)
done
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment