identify -version

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

identify -version

Post by snibgo »

In v6.9.2-5 (pre-built Windows binary) and v6.9.3-7 (Cygwin build), the result of

Code: Select all

identify -version
is 0 (zero).

In v7.0.1-0, the result is 1 (one), the error condition.

Is this a bug, or a new feature?
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: identify -version

Post by dlemstra »

This is a bug and this has been fixed: http://git.imagemagick.org/repos/ImageM ... 86695dfa51. This will be resolved in the next version of IM7.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify -version

Post by fmw42 »

On my Mac OSX:

identify -version
Version: ImageMagick 6.9.4-1 Q16 x86_64 2016-05-12 http://www.imagemagick.org
echo $?
0


im7 magick identify -version
Version: ImageMagick 7.0.1-3 Q16 x86_64 2016-05-12 http://www.imagemagick.org
echo $?
1


im7 magick -version
Version: ImageMagick 7.0.1-3 Q16 x86_64 2016-05-12 http://www.imagemagick.org
echo $?
0
kayn
Posts: 2
Joined: 2016-05-16T06:58:19-07:00
Authentication code: 1151

Re: identify -version

Post by kayn »

Please, fix that also for convert:

Code: Select all

[root@examle.com]# convert -version;echo $?
Version: ImageMagick 7.0.1-4 Q16 x86_64 2016-05-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib djvu freetype jng jp2 jpeg png tiff xml zlib
1
[root@examle.com]# identify -version;echo $?
Version: ImageMagick 7.0.1-4 Q16 x86_64 2016-05-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib djvu freetype jng jp2 jpeg png tiff xml zlib
0
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify -version

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: identify -version

Post by snibgo »

In v7.0.1-4 on Windows, the "identify -version" return code is now 0, so fixed. Thanks.

"magick -version" returns 0, so that is also correct.

However, "convert -version" returns 1 under v7. Under v6, it returned 0. This is also true of "magick convert -version".
snibgo's IM pages: im.snibgo.com
Post Reply