Can't convert a pdf to jpg images

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
ironsand
Posts: 1
Joined: 2014-03-31T12:42:42-07:00
Authentication code: 6789

Can't convert a pdf to jpg images

Post by ironsand »

Hello,

I'm using a command to convert a pdf file to jpg images like this.

`convert -quality 80 -density 300 -resize "x1200>" foo.pdf "/tmp/foo/%02d.jpg"`

Sometimes it fails if this `foo.pdf` is too big. It happened with 36 MB pdf, but another file that is over 40 MB was converted no problem.
If I change density 300 to 75, then the pdf is converted peacefully.

Shortly, conversion fails only when the pdf file size is too big and density is too high.

Is there a way to convert a big size pdf file without changing density with ImageMagick?

I'm using ImageMagick in Ubuntu, and this is result of `convert --version`

Version: ImageMagick 6.6.9-7 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
Post Reply