A simple project to read Jpeg files thanks to Emscripten. very useful if you want to start with the libjpeg library included in Emscripten.
Go to examples folder and try in a localhost server the load_jpeg_example.html example. You will see in the console some messages displaying basic information about the jpeg image:
- Number of channels
- Size of the image
- DPI
JpegReader is based on WebARKitLib a simplified version of the ARToolkit5 library. It is used in other projects like ARnft and jsartoolkitNFT. JpegReader can be very useful to setup project if you want to use jpeglib with Emscripten. The code is developed with modern javscript ES6 and the webpack bundler.