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.
pdf to jpeg poor image quality
-
- Posts: 3
- Joined: 2013-02-06T04:26:43-07:00
- Authentication code: 6789
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: pdf to jpeg poor image quality
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
-
- Posts: 3
- Joined: 2013-02-06T04:26:43-07:00
- Authentication code: 6789
Re: pdf to jpeg poor image quality
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.
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.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: pdf to jpeg poor image quality
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
-
- Posts: 3
- Joined: 2013-02-06T04:26:43-07:00
- Authentication code: 6789
Re: pdf to jpeg poor image quality
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.
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.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: pdf to jpeg poor image quality
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: pdf to jpeg poor image quality
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/