Compare image onto itself fails

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
francois@lubie.co
Posts: 1
Joined: 2013-09-11T13:20:15-07:00
Authentication code: 6789

Compare image onto itself fails

Post by francois@lubie.co »

I did a simple test to compare images with themselves, and I get differences. Here is the command line I used:

Code: Select all

find ${TMPDIR} -type f \( -iname \*.gif -o -iname \*.png -o -iname \*.jpg -o -iname \*.jpeg \) -exec compare -metric AE {} {} null: \;
I get mostly results of 0, but sometimes

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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Compare image onto itself fails

Post by fmw42 »

This message should be moved to the Users forum or the Bugs forum and not the Wizards Toolkit.

Your version of IM is very old. Can you provide a link to your images?

It works fine in IM 6.8.6.9 Q16 Mac OSX

compare -metric AE rose: rose: null:
0

Try the above command in the command line and let us know what you get?
Post Reply