Can't convert a pdf to jpg images
Posted: 2014-03-31T12:58:41-07:00
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
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