npm.io
2.4.11 • Published 2 weeks ago

@cornerstonejs/codec-openjph

Licence
MIT
Version
2.4.11
Deps
0
Size
353 kB
Vulns
0
Weekly
0
Stars
27

openjphjs - HTJ2K support

JavaScript/WebAssembly build of OpenJPH.

Try It Out!

Try it in your browser here (The @cornerstonejs version doesn't run this way any longer)

Building

This project uses Visual Studio Remote Containers to simplify setup and running (everything is contained in a docker image). Use the devconvtainer from the root codecs packages for the @cornerstonejs/codecs version.

This project uses git submodules to pull in OpenJPH. If developing, initialize the git submodules first (do this outside the container):

> $ git submodule update --init --recursive

To build WASM:

> ./build.sh

To build native C/C++ version:

> ./build-native.sh

To update to latest version of OpenJPH

> git submodule update --remote --merge

Testing

pnpm run build   # compile wasm into dist/
pnpm run test    # run vitest against dist/

Tests skip cleanly when dist/ is absent.