#jpegxl #jpeg #wrapper #reference #xl

sys jpegxl-sys

Rust wrapper for JPEG XL reference implementation

33 releases

new 0.11.1+libjxl-0.11.0 Oct 1, 2024
0.10.4+libjxl-0.10.3 Jun 30, 2024
0.10.2+libjxl-0.10.2 Mar 21, 2024
0.8.2+libjxl-0.8.2 Jun 14, 2023
0.1.6 Aug 25, 2020

#224 in Images

Download history 331/week @ 2024-06-11 238/week @ 2024-06-18 385/week @ 2024-06-25 471/week @ 2024-07-02 120/week @ 2024-07-09 379/week @ 2024-07-16 187/week @ 2024-07-23 300/week @ 2024-07-30 131/week @ 2024-08-06 265/week @ 2024-08-13 174/week @ 2024-08-20 251/week @ 2024-08-27 294/week @ 2024-09-03 434/week @ 2024-09-10 504/week @ 2024-09-17 1007/week @ 2024-09-24

2,340 downloads per month
Used in 2 crates (via jpegxl-rs)

GPL-3.0-or-later

460KB
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 Forge Config 2 SLoC Batch 2 SLoC TypeScript 1 SLoC

jpegxl-sys

jpegxl-sys is a wrapper over libjxl library. Check out the original library here.

Building

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

Building libjxl and statically linking can be enabled by using 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 dynamic library doesn't need this requirement.

Dependencies