-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optimization of /CalRGB and /CalGray images #105
Comments
Thank you for reporting this! The
Adding support would be possible, but not trivial. Since there is no simple conversion between An alternative to the above is converting from |
I can confirm that just changing the Nevertheless we could enable such unsafe changes with a command-line flag. |
Good news: it is possible to add support for these color spaces to pdfsizeopt with keeping existing image optimizers (sam2p, jbig2, pngout etc.) in a safe way, without introducing visible changes:
The trick is to pretend that these are Keeping this issue open to track to implementation of this feature. |
Hi, @pts.
Perhaps you consider this to be the same issue as with issue #102, perhaps not.
I had a file that contained only bilevel images that were actually deflated and with a prefix of (before the actual stream):
When running pdfsizeopt, it didn't try to touch those images. I'm attaching a page from this document here.
I'm also attaching a page that I produced by a bad method of extracting the image with pdfimages, then wrapped with img2pdf and then compressed with pdfsizeopt and the difference in size is amazing (from 342kB to 42kB or, in other words, only approximately 12% of the size!).
The files are visually identical (as far as diffpdf is concerned), but this method has the huge drawback of throwing away any scanned text and it only works if all the pages are scans.
Thanks,
Rogério Brito.
p-010.pdf
p-010.pso.pdf
b.pdf
b.pso.pdf
The text was updated successfully, but these errors were encountered: