RESOLVED WONTFIX226950
Canvas (HTMLCanvasElement.toDataURL) can't export it's data to image/webp
https://bugs.webkit.org/show_bug.cgi?id=226950
Summary Canvas (HTMLCanvasElement.toDataURL) can't export it's data to image/webp
Christian Giordano
Reported 2021-06-11 23:47:35 PDT
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
Sam Sneddon [:gsnedders]
Comment 1 2021-06-16 13:51:49 PDT
To note: Firefox Nightly (currently 91) appears not to support image/webp either.
Said Abou-Hallawa
Comment 2 2021-06-16 19:03:03 PDT
This is because the underlying frameworks do not support WebP encoding. For internal reference see <rdar://59404467>.
Said Abou-Hallawa
Comment 3 2021-06-16 20:02:46 PDT
Note You need to log in before you can comment on or make changes to this bug.