Crate oxipng

Crate oxipng 

Source

Macros§

indexset
Create an IndexSet from a list of values

Structs§

IndexSet
A hash set where the iteration order of the values is independent of their hash values.
Options
Options controlling the output of the optimize function
RawImage
A raw image definition which can be used to create an optimized png
ZopfliOptions
Options for the Zopfli compression algorithm.

Enums§

BitDepth
The number of bits to be used per channel per pixel
ColorType
The color type used to represent this image
Deflater
DEFLATE algorithms supported by oxipng (for use in Options)
FilterStrategy
Filtering strategy for use in Options
InFile
Where to read images from in optimize. You can use optimize_from_memory to avoid external I/O.
OutFile
Write destination for optimize. You can use optimize_from_memory to avoid external I/O.
PngError
RowFilter
PNG delta filters
StripChunks
Options to use when stripping chunks (metadata)

Functions§

optimize
Perform optimization on the input file using the options provided
optimize_from_memory
Perform optimization on the input file using the options provided, where the file is already loaded in-memory

Type Aliases§

PngResult
RGB16
16-bit RGB in machine’s native endian
RGBA8
8-bit RGBA, alpha is last. 0 = transparent, 255 = opaque.