Hi,having a JavaScript version of the WebP decoder has been a recurring topic since.. well... quite some time.Turns out, Emscripten can compile libwebp-0.6.0 without all the previous issues (byte-order, etc).There's been some recent commits[4] in the library to facilitate the compilation of libwebp into a webp.js [3] version of it, using CMake and Emscripten.I've set up a little demo of the resulting decoder here:Notes:* the first ever decode is slower, due to JS translation.* doesn't support animation* doc is sparse [1], and the API is minimal* targetting WebAssembly [2] is as easy as adding '-s WASM=1' to the final linking of webp.js
WebPDecodeRGB with webp.js and could you provide an example?
Thank you!
Heyo Skal!Astonishing work on the WASM port. I was wondering, after building it created an img2webp.js (and wasm) but I can't seem to make it work, would you be able to provide the HTML snippet??My guess is it won't work, since it's trying to load a file from the drive, not from a URL. Doesn't matter what I call `callMain` with, it always says couldn't open input file.
Thank you very much for the work already done.
On Sunday, October 22, 2017 at 3:44:25 AM UTC-4, Никита Е wrote:Hi!
Is it possible to useWebPDecodeRGB with webp.js and could you provide an example?
Thank you!
--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss+unsubscribe@webmproject.org.
To post to this group, send email to webp-d...@webmproject.org.
Visit this group at https://groups.google.com/a/webmproject.org/group/webp-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "WebP Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/a/webmproject.org/d/topic/webp-discuss/VyIt_vf0sOU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webp-discuss+unsubscribe@webmproject.org.
To post to this group, send email to webp-d...@webmproject.org.
Visit this group at https://groups.google.com/a/webmproject.org/group/webp-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.
El miércoles, 8 de febrero de 2017 a las 17:34:28 UTC+1, Pascal Massimino escribió:* doesn't support animationHas this changed?Does it support animation?
Documentation is quite scarce (https://github.com/webmproject/libwebp/blob/main/webp_js/README.md), it would be great to add more examples dealing with animated webp images, getting their delay...