20 stable releases
✓ Uses Rust 2018 edition
|2.12.5||Nov 10, 2019|
|2.11.9||Feb 26, 2018|
|2.11.7||Nov 30, 2017|
|2.11.1||Jul 13, 2017|
#72 in Images
1,586 downloads per month
Used in 3 crates (via gifski)
libimagequant bindings for Rust
Imagequant library converts RGBA images to 8-bit indexed images with palette, including alpha component. It's ideal for generating tiny PNG images (although image I/O isn't handled by the library itself).
This wrapper makes the library usable from Rust.
Rust API closely follows the C API, but is slightly OO-ified:
liq_set_dithering_level(result, 1.0); ↓ result.set_dithering_level(1.0);
Converts RGBA images to 8-bit with alpha channel.
This is based on imagequant library, which generates very high quality images.
examples/ directory for example code.