#!/bin/bash
tmpfile=$(mktemp /tmp/img-diff.XXXXXX)
compare -compose src -metric AE $1 $2 $tmpfile
#compare -metric PSNR $1 $2 $tmpfile
eog -n $tmpfile
rm $tmpfile