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
String
to aimage::codecs::png::CompressionType
. This can not be done by implementing the traitFrom<String> for CompressionType
due to Rust’s. orphan rule. - image_
filter_ from - Converts a
String
to aimage::codecs::png::FilterType
. This can not be done by implementing the traitFrom<String> for FilterType
due to Rust’s orphan rule. - max
- Maximum of two values that implement the
PartialOrd
trait. - min
- Minimum of two values that implement the
PartialOrd
trait. - 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.