Page 1 of 1

pdf to jpeg poor image quality

Posted: 2013-02-06T23:43:11-07:00
by devmagzter
I use imagemagick to convert pdf to jpeg for thumbnail images from a good quality pdf.
The resulting jpeg image is poor in quality.
Please advice how to get rid of this issue with any settings.

Re: pdf to jpeg poor image quality

Posted: 2013-02-07T00:20:15-07:00
by snibgo
See the millions of postings on these forum about PDFs. You probably haven't provided a suitable "-density" setting, eg

Code: Select all

convert -density 600 in.pdf out.jpg

Re: pdf to jpeg poor image quality

Posted: 2013-02-07T00:33:03-07:00
by devmagzter
Hi snibgo,
Thanks for your quick response, i will check on these.
But not only the quality sometimes a white margin is coming around the jpg after conversion from pdf. please advice on how to solve this issue as well.

Re: pdf to jpeg poor image quality

Posted: 2013-02-07T01:06:06-07:00
by snibgo
You can trim off the white border. Then, if you want, add another border:

Code: Select all

convert -density 600 in.pdf -trim -bordercolor Pink -border 10x10 out.jpg

Re: pdf to jpeg poor image quality

Posted: 2013-02-10T22:17:07-07:00
by devmagzter
Sometimes pdf is proper with one full page, but the thumbview of pdf has two page sections with one is blank and other side with content.
When we convert jpg the thumb view of pdf is converted with half page blank, but we need the original pdf to be converted as jpg. please advice how to get ride of this issue.

Re: pdf to jpeg poor image quality

Posted: 2013-02-10T22:34:43-07:00
by snibgo
I don't understand the problem. Can you post an example PDF? Put it on a free site such as dropbox, and copy the link here.

Re: pdf to jpeg poor image quality

Posted: 2013-03-04T19:40:25-07:00
by anthony
As mentioned in many places...

A word about vector image formats