#image-compression #image #libcharls #jpegls

charls

Bindings for CharLS, the JPEG-LS implementation

5 releases

new 0.3.1 Sep 2, 2024
0.3.0 Aug 29, 2024
0.2.2 Aug 14, 2024
0.2.1 Aug 9, 2024
0.2.0 Jul 29, 2024

#362 in Images

Download history 120/week @ 2024-07-24 38/week @ 2024-07-31 125/week @ 2024-08-07 137/week @ 2024-08-14 1/week @ 2024-08-21 225/week @ 2024-08-28

488 downloads per month

MIT license

10KB
192 lines

charls-rs

charls on crates.io dependency status charls documentation

Rust bindings for CharLS, the implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression.


lib.rs:

Rust bindings for CharLS, the implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression.

Cargo features

  • static: statically link CharLS. If this is not enabled, you need to install the CharLS (e.g. libcharls.so) into your system or add it to your library path (LD_LIBRARY_PATH).

Example

use charls::CharLS;

// Read a JPEG-LS file
let data = std::fs::read("test.jls")?;
let mut charls = CharLS::default();
let decoded = charls.decode(&data)?;

Dependencies

~9.5MB
~16K SLoC