[magick-users] Re: Using Identify for Finding TIFF Resolution

Mikolaj Machowski mikmach at wp.pl
Mon Feb 25 09:35:34 PST 2008


Yogesh Kadam scripsit:
> Team ImageMagick,
>
>  
>
> How do we use the Identify command in Imagemagick to find out dpi resolution
> for a TIFF File. Identify works for with Width and Height similarly does the
> unit type=dpi give me dpi results. 
>
>  
>
> identify -quiet -format "%w,%h" BASELINE_R_600.TIF
>
%x and %y

Note that it will return it together with units, eg:

$ identify -format "%x" something.jpg
72 undefined

To get "clean" number use:

$ identify -format "%x" something.jpg | cut -d' ' -f1
72

m.



More information about the Magick-users mailing list