Files
q-tools/files/imgdiff
Ville Rantanen cf1669bb3d imgdiff added
2017-02-07 11:45:55 +02:00

9 lines
216 B
Bash
Executable File

#!/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 -