How to specify two compress methods for one pdf
Posted: 2011-03-26T00:36:38-07:00
There's a topic How do I minimize IM's PDF output size? which explains how to use different compression algorithms to achieve the smallest pdf size. But when I convert a gif image together with a jpeg image I'm stuck. Whatever method I choose I get an enormous size of the pdf file.
Each of the 2 source images compresses perfectly when thrown to a separate pdf. So I would like to insert them into 1 pdf using 2 different compression algorithms. My command line could look:
Am I able to get this effect? Now? In future?
My jpeg image is high resolution colored image, and the gif is of type lineart. So the first must be jpeg and the second must be gif. Converting jpeg to gif or gif to jpeg creates unacceptably big files.
Each of the 2 source images compresses perfectly when thrown to a separate pdf. So I would like to insert them into 1 pdf using 2 different compression algorithms. My command line could look:
Code: Select all
convert -compress jpeg skan0007.jpg -compress lzw strona.gif out.pdf
My jpeg image is high resolution colored image, and the gif is of type lineart. So the first must be jpeg and the second must be gif. Converting jpeg to gif or gif to jpeg creates unacceptably big files.