-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: saving images in webp format #21162
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
I think if pillow supports this, it is a pretty easy thing to add. |
Can I work on this issue? I am new to open source and it looks like a good place to start |
Hi @AtulKarn Yes. Please read our contributing guide. Otherwise, we do not "assign" issues, so feel free to make a PR. In terms of etiquette, it is fine for anyone to submit a PR, but once a PR is submitted, it is usually preferable to work with the original PR author than submit a competing PR. |
It's also good to comment that you have started working on a PR to prevent accidental duplicate work. But as said, you don't have to ask to work on something. |
Thanks for the response. I will work on this and read the guide and also ask if I have any difficulties. |
Hey, can I work on this? I am new to open source and wanted to start from here. |
@Critical07 please note that @AtulKarn has announced that he'll be working on the issue. Please coordinate with him to prevent duplicate work or choose another issue. |
@Critical07 Hi. I am currently working on this, and if I am unable to do it in a few days, then you can take it. I will mention if I am unable to complete it |
Added a |
See: https://hacktoberfest.digitalocean.com/resources/participation |
@AtulKarn OK I'll wait take your time |
Problem
I've noticed that matplotlib currently doesn't support saving images in webp format, which I later confirmed by looking into supported file formats in backend_bases.py file.
Saving images in webp would definitely be useful for users who want to upload the graphs they generate in matplotlib to the web. Compression to webp helps significantly reduce the image size, without losing quality. More information about webp can be found here.
Proposed solution
Would it be possible to add webp as a supported image saving format? It seems that
Pillow
package is automatically installed as a dependency when installingmatplotlib
.Pillow
makes it relatively easy to convert an image to webp using thesave()
method. More detailed information can be found in the documentationAdditional context and prior art
No response
The text was updated successfully, but these errors were encountered: