Red Hat Bugzilla – Bug 981944
compare exits with a non-zero exit code when no error occurred
Last modified: 2013-07-15 14:41:49 EDT
Description of problem:
In rawhide the ImageMagick compare command line tool exits with a non-zero exit code (specifically an exit code of one) even when everything worked fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
rawhide [~] % compare image.jpg image.jpg /tmp/diff.jpg
rawhide [~] % echo $?
This works fine in F19 with ImageMagick 188.8.131.52.
Thank you for the bugreport and willing make free software better.
Problem reported upstream: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=23722
Got upstream answer:
A perfect match for -metric ncc is 1 and not zero. If the user wants that default, then just add -metric ncc until the issue is resolved