Page 1 of 1

Failing with high density, pdf to png conversion

Posted: 2010-12-05T21:51:13-07:00
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?

Re: Failing with high density, pdf to png conversion

Posted: 2010-12-05T22:08:54-07:00
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%