Péter Szabó

Results 102 comments of Péter Szabó

The optimized PDF file works for me in Chrome, Firefox, Evince and Ghostscript. It looks like Adobe Acrobat has a bug rendering the `/SMask` image. Maybe the bug is related...

Could you please send me a screenshot of this? [sample.nosmask.pdf](https://github.com/pts/pdfsizeopt/files/10810220/sample.nosmask.pdf)

> Adobe Acrobat Pro 11.0.20.17: ![image](https://user-images.githubusercontent.com/25236477/221088334-c47f8350-009c-472b-88d2-c11ea24440f4.png) Thank you, this is exactly how it looks for me in other viewers (e.g. Chrome). It looks like that Adobe Acrobat Pro 11.0.20.17 has...

Could you please upload the output PDFs you got in https://github.com/pts/pdfsizeopt/issues/131#issuecomment-1445206889 ? It's very interesting that that the output of two versions of pdfsizeopt behave differently in Adobe Acrobat Pro....

> Is this too hard to implement? No, it's relatively straightforward, but it needs time to implement, which I don't have immediately. (Funding could make a difference here.) The first...

FYI New version of the script is available at: https://github.com/rbrito/scripts/blob/master/optimize_pdfs.py

FYI The design is the following. For each image object with its last filter being `/DCTDecode`: uncompress everything exept for `/DCTDecode`. For each image object with `/Filter /DCTDecode`: 1. Parse...

@zvezdochiot, > `jpegtran` only makes sense if the task is to split one object into several smaller ones. This is incorrect. *jpegtran* of mozjpeg can do lossless optimizations on a...

@zvezdochiot, I've extended my comment with some info about how *jpegoptim* can be used by *pdfsizeopt* in the future.

> [jpegoptim](https://github.com/tjko/jpegoptim) not only lossless. See option `-m`. ;) True, there is no confusion about this fact. My comment https://github.com/pts/pdfsizeopt/issues/41#issuecomment-1445066996 also indicates that *jpegoptim* is not only lossless. This issue...