string format %i

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

string format %i

Post by fmw42 »

Can someone explain the purpose of string format %i (http://www.imagemagick.org/script/escape.php)

I get nothing returned from:

Code: Select all

convert rose: -format "%i" info:
IM 6.9.3.7 Q16 Mac OSX
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: string format %i

Post by snibgo »

With v6.9.2-5, I get output from %i in identify, but not convert. This looks like a bug in convert.

Examples:

Code: Select all

f:\web\im>%IM%identify -format %i rose:
ROSE

f:\web\im>%IM%identify -format %i \web\im\x.tiff
\web\im\x.tiff

f:\web\im>%IM%convert rose: -format %i info:


f:\web\im>%IM%convert \web\im\x.tiff -format %i info:

snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: string format %i

Post by fmw42 »

Thanks, snibgo. I should have tested identify also.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: string format %i

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.
Post Reply