pdf to jpeg poor image quality

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
devmagzter
Posts: 3
Joined: 2013-02-06T04:26:43-07:00
Authentication code: 6789

pdf to jpeg poor image quality

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: pdf to jpeg poor image quality

Post 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
snibgo's IM pages: im.snibgo.com
devmagzter
Posts: 3
Joined: 2013-02-06T04:26:43-07:00
Authentication code: 6789

Re: pdf to jpeg poor image quality

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: pdf to jpeg poor image quality

Post 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
snibgo's IM pages: im.snibgo.com
devmagzter
Posts: 3
Joined: 2013-02-06T04:26:43-07:00
Authentication code: 6789

Re: pdf to jpeg poor image quality

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: pdf to jpeg poor image quality

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: pdf to jpeg poor image quality

Post by anthony »

As mentioned in many places...

A word about vector image formats
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply