#jpegxl

sys msg-tool-jpegxl-sys

Rust wrapper for JPEG XL reference implementation

1 unstable release

0.11.2+libjxl-0.11.1 Sep 13, 2025

#1318 in Images


Used in msg_tool

GPL-3.0-or-later

465KB
6K SLoC

C++ 3.5K SLoC // 0.1% comments Rust 1.5K SLoC // 0.2% comments C 869 SLoC // 0.1% comments Bazel 169 SLoC // 0.1% comments Python 97 SLoC // 0.1% comments Shell 75 SLoC // 0.2% comments Go 14 SLoC // 0.2% comments Bitbake 13 SLoC JavaScript 10 SLoC Java 8 SLoC // 0.2% comments Batch 2 SLoC Forge Config 2 SLoC TypeScript 1 SLoC

jpegxl-sys

jpegxl-sys provides a wrapper for the libjxl library. For more details, refer to the original library.

Building

If you wish to specify a custom library path, set the DEP_JXL_LIB environment variable.

To build libjxl and statically link it, use the vendored feature.

Usage

Check out testing units in src/lib.rs for some examples.

Multi-thread

Because libjxl_threads uses std::thread, if you build and statically link libjxl, you need to dynamically link to libc++ or libstdc++.

Using the dynamic library doesn't need this step.

Dependencies