-
|
Is there a simple way to use jpeg compression instead of |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
Please have a look at |
Beta Was this translation helpful? Give feedback.
-
|
"half the readers can't read the resulting PDFs" - I'm sorry? Flate compression has been in the spec since v1.1, I believe, over 30 years ago. EVERY PDF reader can cope with zlib compressed data/images, or they aren't PDF readers. |
Beta Was this translation helpful? Give feedback.
-
|
After actually trying: running it with For comparison FWIW I get about the same size PDF by adding each page as a 75-quality jpeg, as I originally thought. (And it opens in chrominum, too.) |
Beta Was this translation helpful? Give feedback.
-
|
no change using This is when adding pages as PNGs (converted from TIFF by PIL). I wonder if it doesn't actually do anything to "lossless" images in the first place, though my reading of TFM is that it should? Edit: hmm... maybe I should try reading tif into a pixmap and inserting that in a page ... |
Beta Was this translation helpful? Give feedback.
Please have a look at
Documentmethod rewrite_images. It represents pretty much all we have to offer here.