Title: [ENH]: saving images in webp format · Issue #21162 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: saving images in webp format · Issue #21162 · matplotlib/matplotlib
X Title: [ENH]: saving images in webp format · Issue #21162 · matplotlib/matplotlib
Description: 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 us...
Open Graph Description: 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 i...
X Description: 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 ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: saving images in webp format","articleBody":"### Problem\n\nI'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](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backend_bases.py) file. \r\n\r\nSaving 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](https://developers.google.com/speed/webp).\n\n### Proposed solution\n\nWould 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](https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html?highlight=webp#webp)\n\n### Additional context and prior art\n\n_No response_","author":{"url":"https://github.com/LinasNas","@type":"Person","name":"LinasNas"},"datePublished":"2021-09-23T19:34:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/21162/matplotlib/issues/21162"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2684c6ff-80ec-6282-cae1-91bc11531757 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4DA:3F3AF6:547EC9F:75AA574:6A5103F5 |
| html-safe-nonce | 288cc7f11f6a705fd719b7bf483a550c0c31ace94d95963aa1028d224f3f09f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNERBOjNGM0FGNjo1NDdFQzlGOjc1QUE1NzQ6NkE1MTAzRjUiLCJ2aXNpdG9yX2lkIjoiMzI4OTA1Mzg0Nzg4NDk4OTQyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4620bca861c4ae2b1ac5a4ebdd78eeb49aa27327ceba2f6415232c8f897ba28a |
| hovercard-subject-tag | issue:1005777865 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/21162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eea4d228e0c8b897685311e7172062d617b2a1e58489efe83e6da288c8c459db/matplotlib/matplotlib/issues/21162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eea4d228e0c8b897685311e7172062d617b2a1e58489efe83e6da288c8c459db/matplotlib/matplotlib/issues/21162 |
| og:image:alt | 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 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LinasNas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width