convert pdf to jpeg losing resolution

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
koodawg
Posts: 1
Joined: 2011-10-15T09:54:25-07:00
Authentication code: 8675308

convert pdf to jpeg losing resolution

Post by koodawg »

Platform: linux 2.6.35
$ convert -version
Version: ImageMagick 6.6.4-1 2010-12-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

When I do this

$ convert contract.pdf x.jpeg

it converts into a dozen x-01.jpeg, x-02.jpeg's alright, but the resolution is terrible. Specifically this is a contract and the text in the jpeg's is terribly difficult to read as compared to the pdf. Is there a way I can increase the "resolution" to retain the quality of the text/image? I've looked over the help files and nothing jumps out at me.

Thanks
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert pdf to jpeg losing resolution

Post by Bonzo »

Try this:

Code: Select all

$ convert -density 400 contract.pdf x.jpeg
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert pdf to jpeg losing resolution

Post by anthony »

Also see... Text to Image Handing, Postscript/PDF - Pre-formatted Text and Graphics Input
http://www.imagemagick.org/Usage/text/#postscript

What works for postscript should also work for PDF.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply