#quantization #palette #image #pngquant #compression

imagequant

Convert 24/32-bit images to 8-bit palette with alpha channel. Bindings for libimagequant that powers pngquant lossy PNG compressor. Dual-licensed like pngquant. See https://pngquant.org for details

23 stable releases

2.11.9 Feb 26, 2018
2.11.7 Nov 30, 2017
2.11.4 Oct 27, 2017
2.11.1 Jul 13, 2017
2.3.3 Mar 2, 2015

#15 in Images

Download history 164/week @ 2018-05-05 120/week @ 2018-05-12 110/week @ 2018-05-19 159/week @ 2018-05-26 203/week @ 2018-06-02 59/week @ 2018-06-09 127/week @ 2018-06-16 89/week @ 2018-06-23 159/week @ 2018-06-30 118/week @ 2018-07-07 164/week @ 2018-07-14 144/week @ 2018-07-21 158/week @ 2018-07-28

435 downloads per month

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);

For more details see libimagequant documentation and Rust function reference.


lib.rs:

https://pngquant.org/lib/

Converts RGBA images to 8-bit with alpha channel.

This is based on imagequant library, which generates very high quality images.

See examples/ directory for example code.

GPL-3.0+ license

Dependencies

Reverse deps