Quickest way to create a PNG from a PDF

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
hollymcr
Posts: 9
Joined: 2009-12-01T03:56:35-07:00
Authentication code: 8675309

Quickest way to create a PNG from a PDF

Post by hollymcr »

I have some print-quality PDFs that I need to convert to PNGs for display purposes. "identify" reports one of them, for example, as:
test.pdf PDF 13824x2592 13824x2592+0+0 DirectClass 16-bit 102.516mb 3.870u 0:05

Using "convert" to resize this to a PNG takes a long time (around 20s):
convert test.pdf -resize 1024x768 test.png

Does anyone have any hints for speeding this up?

Note that the PDF is quite a small file (13k) comprising vector content, so in theory it could be shrunk to a much smaller size (retaining it's vector nature first) before converting to a PNG, although I'd have no idea how to go about doing that.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Quickest way to create a PNG from a PDF

Post by fmw42 »

IM is may not be the best way to do that. see http://www.imagemagick.org/Usage/formats/#vector
Post Reply