This is a simple test to process images using web assembly. It was made using Rust and the the library image
- Run
wasm-packon the root of the project. This will generate thepkgdirectory, which contains the bindings fromrusttojavascript. - Go to
wwwfolder and runnpm install - Go to
pkgfolder and runnpm link - Go to
wwwfolder and runnpm link rust-wasm-test - Inside
wwwfolder, runnpm run start - Navigate to http://localhost:8080
I've mapped it to support only BMP, PNG, and GIF(without animation) formats. I've tried JPEG, but it seems the underlying library from image called jpeg-decoder does not work in WASM.