Skip to content
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 support for compressed files #17

Open
eseifert opened this issue Mar 30, 2015 · 3 comments
Open

Add support for compressed files #17

eseifert opened this issue Mar 30, 2015 · 3 comments

Comments

@eseifert
Copy link
Owner

eseifert commented Mar 30, 2015

There should be an option to save vector data of text based vector formats (like EPS, PDF, and SVG) to more compact versions. This will produce much smaller files.

Several levels of compression could be implemented. Lossy compression of image data (e.g. as JPEG) could save even more space.

Possible compression formats:

  • EPS: gzip compression (.eps.gz)
  • PDF: deflate compression for streams and images (.pdf)
  • SVG: gzip compression (.svgz)
@noelwelsh
Copy link

noelwelsh commented Jun 3, 2016

I just hacked up a work around for this in my own project to save PDFs with Flate compression. The implementation of PDF already supports Flate compression (at least it seems to work) but due to the way the API is structured you can't actually turn it on without reimplementing PDFDocument.

@eseifert
Copy link
Owner Author

eseifert commented Jun 4, 2016

Thanks for your feedback @noelwelsh. I have implemented a compression option for PDFGraphics2D now—other formats will follow soon. It's already in master and will be included in the upcoming 0.11 release.

This bug will stay open until compression is ready for EPS and SVG, too.

@noelwelsh
Copy link

Great! Looking forward to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants