# libjxl

> The JPEG XL reference encoder and decoder library, with the cjxl and djxl tools

Source: https://talira.ai/catalog/libjxl-5zybnwqd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [media / images / codecs](https://talira.ai/categories/media/images/codecs), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: BSD-3-Clause[^4]
- Pricing: Free and open source[^4][^5]
- Pricing notes: Free and open source (BSD-3-Clause, with an additional patent grant).
- Free tier: yes[^4][^5]
- Backed by: [JPEG XL Project](https://talira.ai/orgs/jpeg-xl-project.md)

libjxl is the reference implementation of JPEG XL, the image format standardized in 2022 as ISO/IEC 18181: an encoder and decoder library plus the `cjxl` and `djxl` command line tools. `cjxl` converts PNG, JPEG, GIF, OpenEXR and other images to JPEG XL at a chosen visual distance or quality, and recompresses JPEG files losslessly so `djxl` can rebuild the original JPEG. Many applications use it for their JPEG XL support. It's packaged by most Linux distributions and Homebrew (`jpeg-xl`).

## Links

- GitHub: https://github.com/libjxl/libjxl
- Docs: https://libjxl.readthedocs.io/en/latest/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/jpeg-xl>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/jpeg-xl>[^2]

## Problems it solves

- convert my PNG and JPEG images to JPEG XL from the command line
- shrink JPEG files without losing any quality and get the original back later
- add JPEG XL encoding and decoding to my C++ application

## Features

- JPEG XL encoder and decoder library
- cjxl and djxl command line tools
- lossless JPEG recompression with exact reconstruction
- reads and writes PNG, APNG, JPEG, GIF, OpenEXR, NetPBM, PFM and PGX
- quality set as visual distance or a 0 to 100 quality scale
- conformance with ISO/IEC 18181

## Limitations

- Its library API, command line options and tools are subject to change, though files cjxl encodes conform to the JPEG XL specification.[^3]

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.72, momentum 0.53, community 0.89, backing 0.30, extensibility 0.00.

- last commit 10 days ago
- 84 commits in the last 90 days
- latest release v0.13.0 18 days ago
- 3.9k GitHub stars
- 164 contributors
- 8k Homebrew installs in 30 days
- backed by JPEG XL Project

## Alternatives

- [libheif](https://talira.ai/catalog/libheif-09e5kekk.md): HEIF and AVIF image file format decoder and encoder

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 29 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 29 Nov 2026)
[^3]: https://github.com/libjxl/libjxl/blob/main/README.md (checked 29 Nov 2026)
[^4]: https://github.com/libjxl/libjxl/blob/main/LICENSE (checked 29 Nov 2026)
[^5]: https://github.com/libjxl/libjxl/blob/main/PATENTS (checked 29 Nov 2026)
