Skip to content

wcroachie/webp-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

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

No packages published