talira

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

open sourceBSD-3-Clausefree

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).

Ways to install

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

Alternatives

The same job

These do what libjxl does.

  1. libheif HEIF and AVIF image file format decoder and encoder

Compare libjxl with the top 3