Crate imagequant

Source
Expand description

https://pngquant.org/lib/

Converts RGBA images to 8-bit with alpha channel.

See examples/ directory for example code.

Structs§

Attributes
Starting point and settings for the quantization process
Histogram
Generate one shared palette for multiple images
HistogramEntry
Number of pixels in a given color for Histogram::add_colors()
Image
Describes image dimensions and pixels for the library
QuantizationResult
Remapping step, computed from Attributes::quantize()

Enums§

ControlFlow
Result of callback in Attributes::set_progress_callback
Error
Error codes

Functions§

new
Start here: creates new handle for library configuration

Type Aliases§

RGBA
8-bit RGBA in sRGB. This is the only color format publicly used by the library.