second-state / wasmedge-quickjs

A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
Apache License 2.0
477 stars 59 forks source link

Update support for the image module #99

Open juntao opened 1 year ago

juntao commented 1 year ago

The new Tensorflow Lite plugin for WASI NN in 0.12 removes built-in image host functions. The Rust examples for WASI NN now uses Rust's image crate to pre-process images. As a result, the tensorflow lite JS examples are now failing.

# wasmedge --dir .:. wasmedge_quickjs.wasm example_js/tensorflow_lite_demo/wasi_nn_main.js
ReferenceError: could not load module filename 'image'

I think we need to update the image module support using the Rust image crate as well.