Re: convert PDF to PNG with given pixel size
Sven Köhler <[email protected]> Tue, 15 Feb 2011 12:21:40 +0100
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
Am 10.02.2011 18:00, schrieb Wolfgang Hugemann: > You could do something along the lines of http://www.imagemagick.org/Usage/windows/#calc_fx, i.e. first Identify the dimensions of the PDF (using a standard resolution), then calculate the adequate resolution based on the result of this and than hand over this result to Convert. > > The above link leeds to a Windows example, but the approach is similar (and probably even easier) under other operation systems. Hmm. Not quite sure whether the output of "identify" is ment to be easily parsable, but that should be doable. However, it seems a bit strange that imagemagick can't do that out of the box. I think, I will file an RFE. Regards, Sven