## WebAssembly demonstration This folder contains an example how to decode JPEG XL files on a web page using WASM engine. ### One line demo The simplest way to get support of JXL images on the client side is simply to link one extra script (` ``` to your html and then putting the `service_worker.js` and `jxl_decoder.wasm` binary in directory where they can be read. It is not guaranteed, but somewhat fresh demo is hosted on `https://jxl-demo.netlify.app/`, e.g.: - [one line demo](https://jxl-demo.netlify.app/one_line_demo_with_console.html) - [one line demo with console](https://jxl-demo.netlify.app/one_line_demo.html) - [manual decode demo](https://jxl-demo.netlify.app/manual_decode_demo.html?img=1&colorSpace=rec2100-pq&runBenchmark=30&wantSdr=false&displayNits=1500); URL contains query parameters that control rendering and benchmarking options; please note, that HDR canvas is often not enabled by default, it could be enabled in some browsers via `about://flags/#enable-experimental-web-platform-features` - [`service_worker.js`](https://jxl-demo.netlify.app/service_worker.js) - [`jxl_decoder.wasm`](https://jxl-demo.netlify.app/jxl_decoder.wasm)