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