#jxl #jpeg-xl

sys jpegxl-sys

Rust wrapper for JPEG XL reference implementation

17 releases

0.3.8-alpha.1 May 14, 2021
0.3.8-alpha.0 May 9, 2021
0.3.7 Apr 13, 2021
0.3.5-alpha.0 Mar 24, 2021
0.1.6 Aug 25, 2020

#3 in #jxl

Download history 64/week @ 2021-03-31 52/week @ 2021-04-07 117/week @ 2021-04-14 25/week @ 2021-04-21 33/week @ 2021-04-28 41/week @ 2021-05-05 60/week @ 2021-05-12 17/week @ 2021-05-19 16/week @ 2021-05-26 22/week @ 2021-06-02 27/week @ 2021-06-09 4/week @ 2021-06-16 10/week @ 2021-06-23 8/week @ 2021-06-30 5/week @ 2021-07-07 28/week @ 2021-07-14

274 downloads per month
Used in jpegxl-rs

GPL-3.0-or-later

36KB
869 lines

jpegxl-sys

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

Building

Building jpeg-xl and statically linking is by default, requiring git command in PATH.

Since the library uses GCC extensions, you need to have a working GCC/Clang toolchain on Windows.

If you wish to use existing library and dynamic linking, then use the feature system-jxl. Set the custom include path and lib path with DEP_JXL_INCLUDE and DEP_JXL_LIB respectively.

Usage

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

Multithread

Because libjxl_threads uses std::thread, if you build and statically link jpeg-xl, you need to link libc++ or libstdc++ standard library as well. Using dynamic library doesn't need this requirement.

If you don't want the dependency, you can disable the threads feature.

Dependencies

~175KB