[Pkg-gmagick-im-team] Bug#763686: imagemagick: identify -quiet has non zero exit code on warnings
Cédric Boutillier
boutil at debian.org
Wed Oct 1 20:17:55 UTC 2014
Package: imagemagick
Version: 8:6.8.9.6-4
Severity: important
Control: blocks 761532 with -1
Dear Maintainer,
When running the following command:
identify -quiet -ping -format "%w %h\n" erroneous.jpg; echo $?
I get the following output
10 10
1
Without the -quiet option, I get an additional line of output:
identify: Corrupt JPEG data: 2 extraneous bytes before marker 0xdb `/home/boutil/debian/pkg-ruby-extras/ruby-mini-magick/spec/files/erroneous.jpg' @ warning/jpeg.c/JPEGWarningHandler/352.
According to the documentation for the quiet option, the warning should
be ignored.
With 8:6.8.8.9-3, the exit code was 0.
This change of behavior breaks a wrapper for ImageMagick, packaged as
ruby-mini-magick. Commands on erroneous images now are causing errors.
A similar problem, reported by one of the upstream developers of
ruby-mini-magick about non wanted positive exit codes can be found here:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=26300&p=115618&hilit=identify#p115618
It seems it is fixed in 6.8.9.9.
Attached is the erroneous.jpg file.
Best wishes,
Cédric
-- Package-specific info:
ImageMagick program version
---------------------------
animate: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
compare: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
convert: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
composite: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
conjure: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
display: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
identify: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
import: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
mogrify: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
montage: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
stream: ImageMagick 6.8.9-6 Q16 x86_64 2014-09-06 http://www.imagemagick.org
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages imagemagick depends on:
ii imagemagick-6.q16 8:6.8.9.6-4
imagemagick recommends no packages.
imagemagick suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erroneous.jpg
Type: image/jpeg
Size: 2667 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gmagick-im-team/attachments/20141001/fb8198b1/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gmagick-im-team/attachments/20141001/fb8198b1/attachment.sig>
More information about the Pkg-gmagick-im-team
mailing list