-
Notifications
You must be signed in to change notification settings - Fork 1
wcroachie/webp-ios
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
this is a polyfill to add support for browsers that do not support the following:
HTMLCanvasElement.toDataURL("image/webp",quality)
HTMLCanvasElement.toBlob(blob=>{},"image/webp",quality)
It uses webassembly and the module pulled from the "examples" folder in the chromium source code.
it hooks the HTMLCanvasElement prototype so it isn't exactly a great solution but it works until webkit decides to support webp encoding for canvases.
enjoy i guess
About
html canvas export as webp - polyfill for iOS safari (and any other browsers that do not support webp export)
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published