Pure JavaScript implementation of a BPG to JPEG image format converter based on Fabrice Bellard's JavaScript BPG decoder and jpeg-js by Eugene Ware et al.
Try the BPG decoder with test.html.
Try the service worker based transparent polyfill with test-sw.html.