Strange problems with identify -format

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Strange problems with identify -format

Post by fmw42 »

emartin24 wrote:Hello,

If I run the following:
[pathToIdentify]/identify.exe [pathToImage]/image.jpg

I get:
[pathToImage]/image.jpg JPEG 1024x768 DirectClass 223kb 0.000u 0:01

However, if I run:
[pathToIdentify]/identify.exe -format "%w %h" [pathToImage]/image.jpg

I get nothing...no results. I've tried putting the -format part after the filename too. Tests have been done with the latest version of ImageMagick and 6.0.6.

Any ideas what might cause this issue?

Works for me on a Mac OSX IM 6.4.9-2 Q16

identify -format "%w %h" rose:
70 46
Post Reply