# Install openjpeg with Homebrew, apk, dnf, MacPorts, Nix

Library for JPEG-2000 image manipulation. Version 2.5.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:openjpeg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install openjpeg
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openjpeg
```

  Evidence: MacPorts ports tree: graphics/openjpeg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add openjpeg
```

  Evidence: Alpine Linux edge package indexes: openjpeg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install mingw32-openjpeg
```

  Evidence: Fedora Rawhide package metadata: mingw32-openjpeg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#openjpeg
```

  Evidence: nixpkgs package indexes: pkgs/by-name/op/openjpeg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:openjpeg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/openjpeg>
- **Version:** 2.5.4
- **Source summary:** Library for JPEG-2000 image manipulation
- **Homepage:** <https://www.openjpeg.org/>
- **Repository:** <https://github.com/uclouvain/openjpeg>
- **Upstream docs:** <https://github.com/uclouvain/openjpeg/blob/master/INSTALL.md>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/uclouvain/openjpeg/archive/refs/tags/v2.5.4.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- opj_compress (cli)
- opj_decompress (cli)
- opj_dump (cli)
- opj_compress (alias)
- opj_decompress (alias)
- opj_dump (alias)

## Dependencies

- libpng
- libtiff
- little-cms2

## Build dependencies

- cmake
- doxygen

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.4
- Local data: ok
- Upstream repository: https://github.com/uclouvain/openjpeg
- Upstream latest detected: v2.5.4 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

OpenJPEG is an open-source JPEG 2000 codec written in C. It was developed to promote use of JPEG 2000 and, in 2015, was recognized by ISO/IEC and ITU-T as JPEG 2000 reference software.

### Project history

OpenJPEG comes from the Universite catholique de Louvain image and signal-processing community and is maintained as a BSD-licensed codec library plus command-line applications. The project describes its purpose plainly: provide an open-source implementation of the JPEG 2000 still-image compression standard.

The package became more significant after the reference-software recognition because JPEG 2000 has a standards-heavy ecosystem: JP2/J2K codestreams, conformance expectations, archival image workflows, medical and cultural-heritage imaging, and codec comparisons against proprietary implementations such as Kakadu.

### Adoption history

The IIIF community's 2017 OpenJPEG Improvement Project is a good adoption marker. Cultural-heritage institutions including Wellcome Library, Stanford University, the University of Michigan, the National Library of the Netherlands, and UCLA funded work to improve OpenJPEG performance, scalability, security, robustness, region-of-interest decoding, and memory footprint for production image repositories.

That adoption story is narrower than a general-purpose image library such as libpng, but deeper in archives and standards-driven imaging. OpenJPEG matters where JPEG 2000's tiling, multi-resolution access, and lossless compression properties are worth the operational complexity.

### How it is used

Developers use OpenJPEG through libopenjp2 or through tools such as opj_compress and opj_decompress. The project documentation describes opj_compress as reading image formats such as BMP, PGM, PNG, TIFF, RAW, TGA, and others and writing JPEG 2000 output, while opj_decompress converts JPEG 2000 inputs such as .j2k, .jp2, .j2c, and .jpt into common image formats.

In package-manager terms, openjpeg is both a leaf tool for people converting images and a dependency for larger imaging stacks. It gives downstream software a permissively licensed JPEG 2000 implementation without requiring users to fetch a vendor SDK.

### Why package nerds care

OpenJPEG is the sort of dependency package that quietly decides whether an image stack can read JP2 files. It is small compared with Java or OpenLDAP, but it sits at the intersection of standards, archival workflows, security-sensitive image parsing, and optional codec support in larger applications.

The package is also notable because codec packages carry file-format risk. A JPEG 2000 decoder is exposed to untrusted binary data, so package maintainers care about upstream activity, fuzzing, CVE fixes, ABI stability, and whether downstreams bundle or dynamically link libopenjp2.

### Timeline

- April/May 2015: OpenJPEG was recognized by ISO/IEC and ITU-T as JPEG 2000 reference software.
- 2017: the IIIF community announced a funded OpenJPEG Improvement Project focused on production-readiness for digital image repositories.
- OpenJPEG 2.x: the command-line tools were renamed to opj_compress and opj_decompress, replacing the OpenJPEG 1.x image_to_j2k and j2k_to_image names.

### Related projects

- OpenJPEG is related to JPEG 2000 Part 1, JP2/J2K tooling, Grok, Kakadu, IIIF image servers, ImageMagick-style image pipelines, and newer HTJ2K work where traditional JPEG 2000 performance is a bottleneck.

### Sources

- <https://github.com/uclouvain/openjpeg>
- <https://github.com/uclouvain/openjpeg/wiki/DocJ2KCodec>
- <https://iiif.io/news/2017/04/27/openjpeg-improvement/>
- <https://www.openjpeg.org/>
- <https://www.openjpeg.org/doxygen>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** openjpeg
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - openjpeg: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/openjpeg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - openjpeg - 2.5.4-r1: normalized package name match | Alpine Linux edge package indexes: openjpeg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Open-source implementation of JPEG2000 image codec | https://www.openjpeg.org/
- apk - openjpeg-dev - 2.5.4-r1: normalized package name match | Alpine Linux edge package indexes: openjpeg-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Open-source implementation of JPEG2000 image codec (development files) | https://www.openjpeg.org/
- apk - openjpeg-tools - 2.5.4-r1: normalized package name match | Alpine Linux edge package indexes: openjpeg-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Open-source implementation of JPEG2000 image codec - tools | https://www.openjpeg.org/
- dnf - mingw32-openjpeg - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw32-openjpeg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MinGW Windows openjpeg library | https://github.com/uclouvain/openjpeg
- dnf - mingw32-openjpeg-tools - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw32-openjpeg-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tools for the MinGW Windows openjpeg library | https://github.com/uclouvain/openjpeg
- dnf - mingw64-openjpeg - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw64-openjpeg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MinGW Windows openjpeg library | https://github.com/uclouvain/openjpeg
- dnf - mingw64-openjpeg-tools - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: mingw64-openjpeg-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tools for the MinGW Windows openjpeg library | https://github.com/uclouvain/openjpeg
- dnf - openjpeg - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: openjpeg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C-Library for JPEG 2000 | https://github.com/uclouvain/openjpeg
- dnf - openjpeg-devel - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: openjpeg-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for OpenJPEG 2 | https://github.com/uclouvain/openjpeg
- dnf - openjpeg-devel-docs - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: openjpeg-devel-docs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Developer documentation for OpenJPEG 2 | https://github.com/uclouvain/openjpeg
- dnf - openjpeg-tools - 2.5.4-3.fc44: normalized package name match | Fedora Rawhide package metadata: openjpeg-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OpenJPEG 2 command line tools | https://github.com/uclouvain/openjpeg
- MacPorts - openjpeg: normalized package name match | MacPorts ports tree: graphics/openjpeg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [leptonica](https://www.automicvault.com/pkg/brew/leptonica/) - Leptonica declares OpenJPEG as a Homebrew runtime dependency.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [libtiff](https://www.automicvault.com/pkg/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://www.automicvault.com/pkg/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [doxygen](https://www.automicvault.com/pkg/brew/doxygen/) - Build dependency declared by Homebrew.
- [dspdfviewer](https://www.automicvault.com/pkg/brew/dspdfviewer/) - Popular package that depends on this formula.
- [eccodes](https://www.automicvault.com/pkg/brew/eccodes/) - Popular package that depends on this formula.
- [efl](https://www.automicvault.com/pkg/brew/efl/) - Popular package that depends on this formula.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Popular package that depends on this formula.
- [ffmpeg@4](https://www.automicvault.com/pkg/brew/ffmpeg-4/) - Popular package that depends on this formula.
- [openjph](https://www.automicvault.com/pkg/brew/openjph/) - Shares av.db curated category or tags: cli, compression, image-codec, jpeg-2000, media.
- [jasper](https://www.automicvault.com/pkg/brew/jasper/) - Shares av.db curated category or tags: cli, image-codec, jpeg-2000, media.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Shares av.db curated category or tags: cli, compression, image-codec, media.
- [jpeg-xl](https://www.automicvault.com/pkg/brew/jpeg-xl/) - Shares av.db curated category or tags: cli, image-codec, media.
- [jxl-oxide](https://www.automicvault.com/pkg/brew/jxl-oxide/) - Shares av.db curated category or tags: cli, image-codec, media.
- [bento4](https://www.automicvault.com/pkg/brew/bento4/) - Shares av.db curated category or tags: cli, command-line-tools, media.
- [camellia](https://www.automicvault.com/pkg/brew/camellia/) - Shares av.db curated category or tags: c-library, cli, media.
- [djvulibre](https://www.automicvault.com/pkg/brew/djvulibre/) - Shares av.db curated category or tags: cli, compression, media.
- [grokj2k](https://www.automicvault.com/pkg/brew/grokj2k/) - Both packages work with overlapping file formats or content types. Shared terms: cli, cms2, codec, compress, compression.

## Combined YAML source

View the package source record on GitHub. [combined/openjpeg.yml](https://github.com/automic-vault/db/blob/main/combined/openjpeg.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- package-page supplement data/pkg-pages/brew/openjpeg.json
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
