-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Feature request: TIFF LZW compression support in savefig() #8530
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
Comments
Matplotilib is actually using PIL internally to save into TIFF. Look at the end of https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_agg.py#L627 If you feel like making the changes your self a pull request is very welcome. |
Thanks, Jens. My implementation would look like this -- may I use the TiffImagePlugin as stated? Thanks!
|
MPL is such a great tool I tend to use it in many projects. Although amazing in so many ways, one area of improvement is the support for compression for TIFF images. Compression works when saving to other formats but it does not work with TIFF format. Note that TIFF is the format most scientific journal prefer for figures. MPL is great at so many things, I think embedding an LZW compression algorithm would be great. Currently we have to resort to PIL or PILLOW and do this:
If we could spare steps 3-5 it would be great I think...
Thanks!!!
The text was updated successfully, but these errors were encountered: