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