Bug 226950
| Summary: | Canvas (HTMLCanvasElement.toDataURL) can't export it's data to image/webp | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Christian Giordano <christian> |
| Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Enhancement | CC: | dino, sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | macOS 11 | ||
Christian Giordano
While Chromium (and Chrome) supports it, in Safari when you try to export a canvas to image/webp it returns a png. You can try it here: https://codepen.io/nuthinking/pen/eYZBWLL
Let me know if you need anything else.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sam Sneddon [:gsnedders]
To note: Firefox Nightly (currently 91) appears not to support image/webp either.
Said Abou-Hallawa
This is because the underlying frameworks do not support WebP encoding. For internal reference see <rdar://59404467>.
Said Abou-Hallawa
<rdar://59404467>