It’s 2026 and iOS Safari does not support "image/webp" inside the HTMLCanvasElement.toDataURL() or toBlob() type parameter.
I spent over an hour last night trying to debug why my client-side image optimization script wouldn’t convert to webp on upload on my phone. It worked on desktop just fine. I finally discovered: https://caniuse.com/mdn-api_htmlcanvaselement_todataurl_type_parameter_webp
And iOS does not support it. WTF? In fact, just a couple of weeks ago a WebKit commit landed that added an explicit test expectation acknowledging that canvas.toDataURL("image/webp") is not supported: https://www.mail-archive.com/webkit-changes%40lists.webkit.org/msg252118.html
Anyone have any insight into this? Suggestions? Inside knowledge on when this will be available? Right now I’ve compiled WASM to handle it. It works but I’d prefer native support.