This is a simple test to process images using web assembly. It was made using Rust and the the library image
- Run
wasm-pack
on the root of the project. This will generate thepkg
directory, which contains the bindings fromrust
tojavascript
. - Go to
www
folder and runnpm install
- Go to
pkg
folder and runnpm link
- Go to
www
folder and runnpm link rust-wasm-test
- Inside
www
folder, 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.