Page 1 of 1

identify -format problem

Posted: 2007-10-20T10:04:27-07:00
by joshrobe
When I use the command...

identify -format "%w %h %P" image.jpg

it returns something like...

120 180 %P

All special characters beginning with % work EXCEPT those in uppercase (C, D, O, P, Q, T). Any idea why?

Thanks.

Re: identify -format problem

Posted: 2007-10-21T16:53:40-07:00
by anthony
Simple your IM is too old. The uppercase percent escapes was a late addition.
For example '%D' was added to IM v6.2.6-2, by my request, for getting animation disposal info.

Actually the other percentages were also added by my request to make extracting geometry info in the form of geometry argument easier.

Re: identify -format problem

Posted: 2007-10-22T04:17:00-07:00
by joshrobe
Makes sense. Thanks for the info.