Code: Select all
find ${TMPDIR} -type f \( -iname \*.gif -o -iname \*.png -o -iname \*.jpg -o -iname \*.jpeg \) -exec compare -metric AE {} {} null: \;
Version of compare: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP
OS: Linux CentOS 6 Kernel 2.6.32-358.14.1.el6.x86_64
Am I doing something wrong or is compare broken? Just to let you know.