imgdiff added

This commit is contained in:
Ville Rantanen
2017-02-07 11:45:55 +02:00
parent 1054fd7698
commit cf1669bb3d
2 changed files with 9 additions and 0 deletions

1
bin/imgdiff Symbolic link
View File

@@ -0,0 +1 @@
../files/imgdiff

8
files/imgdiff Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
DISP=display
which feh &> /dev/null && DISP="feh --scale-down"
compare -verbose -metric RMSE "$1" "$2" MIFF:- | \
convert -background gray -gravity center "$1" "$2" +append - -append PNG:- | $DISP -