Bug 226950 - Canvas (HTMLCanvasElement.toDataURL) can't export it's data to image/webp
Summary: Canvas (HTMLCanvasElement.toDataURL) can't export it's data to image/webp
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified macOS 11
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-11 23:47 PDT by Christian Giordano
Modified: 2021-06-16 20:02 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Giordano 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.
Comment 1 Sam Sneddon [:gsnedders] 2021-06-16 13:51:49 PDT
To note: Firefox Nightly (currently 91) appears not to support image/webp either.
Comment 2 Said Abou-Hallawa 2021-06-16 19:03:03 PDT
This is because the underlying frameworks do not support WebP encoding. For internal reference see <rdar://59404467>.
Comment 3 Said Abou-Hallawa 2021-06-16 20:02:46 PDT
<rdar://59404467>