@abasb75/openjph
v0.18.2
Published
Openjph for browsers
Downloads
163
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/openjph
- import
@abasb75/openjph
:
import OpenJPEG from '@abasb75/openjph'
...
let decoder,encoder;
OpenJPHWASM().then((openjph)=> {
decoder = new openjph.HTJ2KDecoder();
encoder = new openjph.HTJ2KEncoder();
});
...
Decode
import {decode} from "@abasb75/openjph";
const decoded = await decode(arrayBuffer); // ArrayBuffer
console.log('decoded',decoded);
For see example you can use this link