Replies: 1 comment 6 replies
-
If you replace images, there is always the possibility that the new image is larger or leads to a larger result. Especially when inserting PNGs, MuPDF uses its own compression, which is not necessarily the one with the largest compression results. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description of the bug
I want to compress a PDF. I extracted images from the PDF file and then used pngquant to compress them. Their size was reduced by more than 70%. However, when I used the replace_image function to replace the images, the size of the new PDF became bigger. I want to know why this happens, and if I used the save function incorrectly.
How to reproduce the bug
PyMuPDF version
1.24.6
Operating system
MacOS
Python version
3.9
Beta Was this translation helpful? Give feedback.
All reactions