Failing with high density, pdf to png conversion

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
Ellipsis
Posts: 1
Joined: 2010-12-05T21:41:52-07:00
Authentication code: 8675308

Failing with high density, pdf to png conversion

Post by Ellipsis »

http://pastebin.com/Jn9VrkRd

Input file: http://www.blm.gov/pgdata/etc/medialib/ ... 20copy.pdf

I can successfully use a density of 400, but not 600. My initial attempt was 1600. This provides 'OK' quality, but I want to create a raster image with better quality, and yeah I know that the size of the image is going to be fairly large.

Am I running out of memory? Do I need to increase the size of my swap partition?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Failing with high density, pdf to png conversion

Post by fmw42 »

what is your exact command?


Have you tried

convert -density 1600 image.pdf -resize 4.5% result.png

where

72/1600 = 4.5%

This does supersampling to get high quality result.

But 1600 is rather high density and will cause large intermediate image, so you could be running out of memory.

Mostly it seems to work reasonably well with

convert -density 288 image.pdf -resize 25% result.png

where

72/288 = 1/4 = 25%
Post Reply