PDF to PNG

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
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

PDF to PNG

Post by vsambhe »

Hi I am using convert command line utility to convert PDF to PNG. I am using the following command

CONVERT IG202.PDF -quality 100 F:\IG202.PNG

I am not getting proper clarity in the converted image. Its all blurred. Can anyone give me some feedback I need to keep it very clear in the converted image.

What options I am missing. I tried density but it did not help either.

Thanks,

Vijay
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PDF to PNG

Post by snibgo »

Did you try "-density 600" (or similar) before the input PDF?
snibgo's IM pages: im.snibgo.com
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe »

I tried, it does not help. Is there a way I can send this pdf to you?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PDF to PNG

Post by snibgo »

You can put it online somewhere like dropbox.com and paste the URL here. I can't download files more than about 10 MB.
snibgo's IM pages: im.snibgo.com
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe »

Hi There

I have sent you the PM. Please check. I have uploaded on dropbox for you.

Thanks,

Vijay
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PDF to PNG

Post by snibgo »

The PDF is a vector diagram with graphic lines, letters and numbers, and other characters.

With IM v6.9.5-3 and Ghostscript v9.19:

Code: Select all

convert -density 600 IG202.PDF out.png
This shows the graphics and characters as clearly as Adobe Reader. With 300, some fine detail is lost, but the writing is still clear.
snibgo's IM pages: im.snibgo.com
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe »

Uploaded the file on dropbox - The link is https://www.dropbox.com/s/kehjpa3bmdvfn ... 2.pdf?dl=0
vsambhe
Posts: 5
Joined: 2017-01-30T05:53:34-07:00
Authentication code: 1151

Re: PDF to PNG

Post by vsambhe »

Thanks. May be the flag quality was messing it for me then. Thanks for having a look at this.
Post Reply