Load TIFF image using ServiceWorker and emscripten

Source: https://github.com/horo-t/tiff2bmpsw

This page is a demo of ServiceWorker.

Chrome can't load TIFF images.
But you can see the image below after clicking the button.
This button registers a ServiceWorker which converts TIFF file to BMP file.
This ServiceWorker is using LibTIFF library which is compiled to JavaScript by Emscripten.
You can inspect the ServiceWorker from chrome://inspect/#service-workers.

If you are using Chrome 39, you have to enable "enable-experimental-web-platform-features" in chrome://flags.