I successfully wrote an image viewer for ELKS (Linux 8086) using picojpeg:
https://github.com/rafael2k/elks-viewer
https://github.com/richgel999/picojpeg
I works quite well and the memory footprint is very low, while it uses only integers and is pretty fast. It could be a good option for microweb jpeg decoding.