@abasb75/charls-decoder
v2.4.2
Published
charls decoder for js
Downloads
118
Readme
charls-js (only decoder)
JS/WebAssembly build of CharLS
demo
Using generated Javascript File:
- install From
npm
:
npm i --save @abasb75/charls-decoder
- import
@abasb75/charls-decoder
:
import CharLSW5asm from '@abasb75/charls-decoder'
...
let decoder,encoder;
CharLSWasm().then(function(charlsjs) {
decoder = new charlsjs.JpegLSDecoder();
});
...
Decode
import {decode} from "@abasb75/charls-decoder";
const decoded = await decode(arrayBuffer); // ArrayBuffer
console.log('decoded',decoded);
For see example you can use this link