Re: convert PDF to PNG with given pixel size

Michael Howard <[email protected]> Tue, 15 Feb 2011 08:51:56 -0500
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
On Tue, Feb 15, 2011 at 6:21 AM, Sven Köhler <[email protected]> wrote:
[snip]
> Hmm. Not quite sure whether the output of "identify" is ment to be
> easily parsable, but that should be doable.

Sven,

The identify command takes a -format parameter that allows you to
select the image attributes that you want to select. For example, to
get only WIDTHxHEIGHT you can use something like:

  identify -format '%wx%h\n' myImage.png

Using this you can make something that is more easily parsable.


Michael