Resolution of a bmp-file

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
sashs
Posts: 6
Joined: 2010-04-12T23:50:31-07:00
Authentication code: 8675308

Resolution of a bmp-file

Post by sashs »

Hello,

how can i get the resolution of a bmp-file?

I tried the identify-command, but i didn't get the resolution.

Greets

sashs
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Resolution of a bmp-file

Post by el_supremo »

Did you use the -verbose option?

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resolution of a bmp-file

Post by fmw42 »

you can also get it using string formats (see http://www.imagemagick.org/script/escape.php)

convert image -format "%x x %y" info:
Post Reply