identify -format problem

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
joshrobe

identify -format problem

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: identify -format problem

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
joshrobe

Re: identify -format problem

Post by joshrobe »

Makes sense. Thanks for the info.
Post Reply