# @cornerstonejs/codec-openjph

> JS/WebAssembly build of OpenJPH

Latest version **2.4.11** (published 2026-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cornerstonejs/codec-openjph
pnpm add @cornerstonejs/codec-openjph
yarn add @cornerstonejs/codec-openjph
bun add @cornerstonejs/codec-openjph
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.4.11 |
| Published | 2026-09-04 |
| First published | 2022-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=0.14 |
| Dependencies | 0 |
| Unpacked size | 353.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 27 |
| Author | CornerstoneJS |
| Maintainers | jamesapetts, cornerstonejs-bot, swederik, sedghi, wayfarer3130, jbocce |

## Links

- npm: https://www.npmjs.com/package/@cornerstonejs/codec-openjph
- Repository: https://github.com/cornerstonejs/codecs
- Homepage: https://github.com/chafey/openjphjs#readme
- Issues: https://github.com/chafey/openjphjs/issues
- npm.io page: https://npm.io/package/@cornerstonejs/codec-openjph

## Recent versions

- 2.4.11 (latest) — 2026-09-04
- 2.4.10 — 2026-09-01
- 2.4.9 — 2026-08-13
- 2.4.8 — 2026-08-11
- 2.4.7 — 2024-12-10
- 2.4.5 — 2023-11-08
- 2.4.3 — 2023-10-25
- 2.4.2 — 2023-02-13
- 2.4.1 — 2023-01-03
- 2.4.0 — 2022-12-22
- 2.3.0 — 2022-12-21
- 2.2.0 — 2022-12-21
- 2.1.0 — 2022-12-21
- 1.0.3 — 2022-10-26
- 1.0.2 — 2022-10-24

## README

# openjphjs - HTJ2K support

JavaScript/WebAssembly build of [OpenJPH](https://github.com/aous72/OpenJPH).

## Try It Out!

Try it in your browser [here](https://chafey.github.io/openjphjs/test/browser/index.html)  (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

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

Tests skip cleanly when `dist/` is absent.

---
_Source: https://npm.io/package/@cornerstonejs/codec-openjph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
