Expand description
PNG decode/encode and read/write functions, external crate type conversions and other utility functions.
Functions§
- decode_
png - Decodes and returns a PNG.
- encode_
png - Encodes a PNG and writes it to a buffer.
- image_
compression_ from - Converts a
Stringto aimage::codecs::png::CompressionType. This can not be done by implementing the traitFrom<String> for CompressionTypedue to Rust’s. orphan rule. - image_
filter_ from - Converts a
Stringto aimage::codecs::png::FilterType. This can not be done by implementing the traitFrom<String> for FilterTypedue to Rust’s orphan rule. - max
- Maximum of two values that implement the
PartialOrdtrait. - min
- Minimum of two values that implement the
PartialOrdtrait. - read_
png_ from_ file - Reads a PNG from the local file system.
- write_
png_ parallel - [SUPPORTED IN WASM] WASM stub; single-threaded write PNG to the local file system.
- write_
png_ to_ file - Writes a PNG to the local file system using the provided compression and filter definitions.
- write_
png_ to_ file_ d - Writes a PNG to the local file system using the default compression and filter settings.