Crate zipng

source ·
Expand description

zipng is a polyglot encoder for ZIP-and/or-PNG files.

Modules

Built-in bitmap fonts
Built-in color palettes

Structs

A bitmap font that can be used to render text onto a Png image.
In-memory representation of a PNG file’s essential image contents.
In-memory representation of a ZIP file’s essential archive contents.
Configuration determining how the Zip archive is serialized.
A reference to an entry in a Zip archive.

Enums

The bit depth of an image, as defined in the PNG specification.
The color type of an image, as defined in the PNG specification.

Statics

Pins the mimetype magic header file used by EPUB and OpenDocument.
Sorts files lexicographically based on their content, then applies SORT_BY_NAME.
Sort file by name, first based on the number of slash / path separator characters, then lexicographically.

Traits

A Png or input that can be converted to one.
A Zip or input that can be converted to one.

Functions

Compute the Adler-32 checksum of a byte slice
Compute the CRC-32 checksum of a byte slice as per ISO 3309
Reads the image data from a PNG file.
Creates a PNG file with the given image data.
Reads the archive contents of a ZIP file.
Creates a ZIP archive.

Type Definitions

Comparison function used for ordering entries in a Zip archive.
Predicate function used for selecting entries in a Zip archive.