Need 300dpi PNG and PDF

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
lepagano

Need 300dpi PNG and PDF

Post by lepagano »

Hello all,

I have a question regarding PNG and PDF dpi. I am running a program that outputs PNG and PDF images. Unfortunately, the PNG's are only 96dpi. I need these images to be in 300dpi. Also, I have PDF's that I convert to PNG's which also need to be 300dpi. Does anyone know if there is a way to convert the PNG's to be a high resolution (300dpi)?

Thank you.

Regards,

Lara
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need 300dpi PNG and PDF

Post by fmw42 »

if I recall, PNG does not support dots per inch only dots per centimeter. So you will need to convert whatever dpi you want to the equivalent dpc, then use -density and -units

see http://www.imagemagick.org/Usage/formats/#png_density
Post Reply