@abasb75/htj2k-decoder
v0.18.2-test1
Published
OpenJPH for JavaScript
Downloads
57
Readme
openjphjs HTJ2K Decoder/Encoder
JS/WebAssembly build of OpenJPH
Description
OpenJPH
is a decoder/ecoder for HTJ2K
image.
alternative : OpenJPEG
Try It Out!
Try it in your browser here
Using generated Javascript File:
- install From
npm
:
npm i --save @abasb75/htj2k-decoder
- import
@abasb75/htj2k-decoder
:
import OpenJPEG from '@abasb75/htj2k-decoder'
...
let decoder;
OpenJPHWASM().then((openjph)=> {
decoder = new openjph.HTJ2KDecoder();
});
...
Decode
import {decode} from "@abasb75/openjph";
const decoded = await decode(arrayBuffer); // ArrayBuffer
console.log('decoded',decoded);
For see example you can use this link
only decoder versions:
@abasb75/htj2k-decoder