jr
jpegxl-rs
cargo install jpegxl-rs
jr

jpegxl-rs

Safe Rust wrapper for JPEG XL reference implementation

by Inflation

0.1.4 (see all)License:GPL-3.0-or-later
cargo install jpegxl-rs
Readme

jpegxl-rs

jpegxl-rs is a safe wrapper over jpeg-xl library. Check out the original library here and the bindings here.

Building

Install the jpeg-xl library system-wide or specify PKG_CONFIG_PATH to search for needed paths. Optionally, you can overwrite the include path and lib path with DEP_JPEGXL_INCLUDE and DEP_JPEGXL_LIB respectively.

If you want to build the library within cargo, enable build-jpegxl features for jpegxl-sys in your Cargo.toml.

You need to have a working llvm environment. Note that this will link to libc++ by default (since you already use llvm). You can modify it by setting DEP_JPEGXL_CXXLIB.

Usage

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

image crate integration (WIP)

Enable with-image feature. Then you can use image's decoder interface.

GitHub Stars

14

LAST COMMIT

8mos ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.1.4
2yrs ago
0.1.3
2yrs ago
0.1.2
2yrs ago
0.1.1
2yrs ago
No alternatives found
No tutorials found
Add a tutorial