You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 installing matplotlib. Pillow makes it relatively easy to convert an image to webp using the save() method. More detailed information can be found in the documentation
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.
@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
hacktoberfest-accepted is used to mark PRs as accepted, it does nothing on issues. Since this repository has the hacktoberfest topic, it is unnecessary to use the label as merging or approving a PR will already make it count.
Activity
jklymak commentedon Sep 23, 2021
I think if pillow supports this, it is a pretty easy thing to add.
AtulKarn commentedon Oct 1, 2021
Can I work on this issue? I am new to open source and it looks like a good place to start
jklymak commentedon Oct 1, 2021
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.
timhoffm commentedon Oct 1, 2021
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.
AtulKarn commentedon Oct 1, 2021
Thanks for the response. I will work on this and read the guide and also ask if I have any difficulties.
ShubhitSardana commentedon Oct 1, 2021
Hey, can I work on this? I am new to open source and wanted to start from here.
timhoffm commentedon Oct 1, 2021
@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.
AtulKarn commentedon Oct 2, 2021
@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
aitikgupta commentedon Oct 2, 2021
Added a
hacktoberfest-acceptedlabel, so any related PR will add on to users' contribution count.remram44 commentedon Oct 3, 2021
hacktoberfest-acceptedis used to mark PRs as accepted, it does nothing on issues. Since this repository has thehacktoberfesttopic, it is unnecessary to use the label as merging or approving a PR will already make it count.See: https://hacktoberfest.digitalocean.com/resources/participation
dewanshrawat15 commentedon Oct 3, 2021
@jklymak I think Pillow does support saving images in webp. Reference this medium article
ShubhitSardana commentedon Oct 3, 2021
@AtulKarn OK I'll wait take your time