How can I optimize the png file size with pdf2image?

9 views
Skip to first unread message

Support

unread,
Apr 17, 2009, 5:05:43 PM4/17/09
to PDF2Image
Q: I am currently evaluating your 'PDF2Image' command-line
application (http://www.pdftron.com/pdf2image) and have a few
questions, which I hope you can help with.
Essentially, we want to batch convert PDF files into PNG format, to
enable these to be imported into our document image processing
system.
I have use the follow comoand-line:
pdf2image -o mysql_en_1_10 -f png8 --dpi 96 mysql_en_1_10.pdf

The png files are very large for me, average 80kb.

How can I optimize the png files size less than 30kb (without losing
any information) ?

--------
A: Since you are already using indexed PNG format (png8) you are
already getting PNG with minimum file size.
The only way to produce smaller files is to decrease the resolution.
For example:

pdf2image -o mysql_en_1_10 -f png8 --dpi 72 mysql_en_1_10.pdf
Reply all
Reply to author
Forward
0 new messages