transform pdf to image/s

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
lewisstrauss

transform pdf to image/s

Post by lewisstrauss »

Hi All,

Using the command input I convert a pdf file and each page of the law as a pdf: convert input.pdf output.jpg.

But the picture quality is poor, there is some parameter to set the quality?


Thank in advanced!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: transform pdf to image/s

Post by Bonzo »

Try:

Code: Select all

convert -density 300 input.pdf output.jpg
and/or
convert -density 300 input.pdf -quality 100 output.jpg
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: transform pdf to image/s

Post by anthony »

If the result is too large, try using

Code: Select all

convert -density 300 input.pdf  -resample 100  -quality 100 output.jpg
which reads at 300dpi then resizes the image for 100dpi producing a
higher quality, but smaller image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply