4 ms·
A Wasm implementation of JPEG XL is 174 kB, and a minimal implementation (reflecting the libjxl-tiny encoder) can be done in somewhere around 25-50 kB. Wasm is
by JyrkiAlakuijala 4y ago
A Wasm implementation of JPEG XL is 174 kB, and a minimal implementation (reflecting the libjxl-tiny encoder) can be done in somewhere around 25-50 kB. Wasm is rather performant and can render both normal and HDR JPEG XL's in browsers.
- twotwotwo 4y agoSomeone implemented a BPG decoder as a WASM ServiceWorker returning PNG files, an approach that could work even better for Brunsli: https://sequentialread.com/better-portable-graphics-bpg-on-the-web-with-webassembly-wasm-and-serviceworker/ https://sequentialread.com/better-portable-graphics-bpg-on-t...
- masswerk 4y agoHow does this work with color profiles? (As I understand it – and this is not much –, libjxl returns a bitmap and an ICC profile, which then has to be matched against the color space of the display. How is this going to work in a WASM decoder inside the browser? Or does it just render in sRGB, hoping for the best?)