zune-jpegxl
A simple jpeg-xl encoder
This features a simple jpeg-xl lossless encoder with the following features
- Lossless encoding
- 8 bit and 16 bit support
- Grayscale and RGB{A} encoding
- Threading capabilities
Usage
First add the latest into your cargo toml
By cargo add
cargo add zune-jpegxl
Or adding directly to your Cargo.toml
= "0.4"
Then use the JxlSimpleEncoder
struct to encode an image
use BitDepth;
use EncoderOptions;
use JxlSimpleEncoder;
// this example won't work