Open 2V3EvG4LMJFdRe opened 1 year ago
I've been doing some tests and even though I could jpegopt={"quality": 100, "optimize": True}
it seems that the ppm export isn't actually lossless to begin with:
Original PDF
pdf2image PPM
It's noticeably more blurry.
It's a lot better with use_pdftocairo=True
. Either jpg or png, outputs a much better image, but it's still not the original files. I wonder if such a process is possible at all.
Is there a way to do lossless compression? If not, what is the way to go as close to lossless other than specifying png output?
I need a reliable script that converts images to PDF and then another to revert the process.
To Reproduce
pdf2image
to convert the pdf file "back" into images:Describe the bug
The result is a series of ppm files which would amount to a 500mb pdf. Lossless quality, but too big. Using
fmt='jpeg'
outputs files which would amount to a 24.3mb pdf, showing its drop in quality when zooming in. Is there a way to create better quality jpeg files, closer to the original files?