|
|
|
|
|
by ZeroGravitas
5180 days ago
|
|
There's already such javascript libraries in existence for WebP (they also do WebM). http://webpjs.appspot.com/ http://libwebpjs.hohenlimburg.org/vp8/webm-javascript-decode... (There's also a shortcut in browsers like Firefox that support WebM and not WebP where you can turn a WebP file into a single frame WebM video and display it to canvas). I would imagine that's a good route for lesser known image and audio formats (possibly even video formats) and backwards compatability but I'm not sure it's currently ideal for most image decoding on the web. Someone should really try it out and see though, it's probably only a matter of time before things like this start moving into javascript. |
|