samsam2310 / zbar.wasm

A wasm build of C/C++ ZBar barcode scanning library.
GNU Lesser General Public License v2.1
222 stars 30 forks source link

Upgrade ZBar to 0.23.90 and upgrade toolchain #12

Closed undecaf closed 2 years ago

undecaf commented 2 years ago

Hi, first of all thank you for your WASM build of ZBar which I found to be very performant in comparison to pure JavaScript barcode readers.

Since there have been a few ZBar updates in the meantime I updated your project as well. I hope that this is helpful.

Edit: sorry, did not look into the open issues before. This should fix #10 .

undecaf commented 2 years ago

I am still looking into bundling the whole thing, i.e. distributing only the .wasm file (~235kB) and a single minified .js file (~20kB). That will probably take a few days since I am busy with other tasks now. As soon as it is ready I will make another PR.

Cheers!

samsam2310 commented 2 years ago

I am still looking into bundling the whole thing, i.e. distributing only the .wasm file (~235kB) and a single minified .js file (~20kB). That will probably take a few days since I am busy with other tasks now. As soon as it is ready I will make another PR.

Cheers!

I think we can use "wasmBinary" argument to override the path so don't need a copy of zbar.js.

lekoala commented 2 years ago

@undecaf hey great work you did there :-)