Module pconvert_rust::utils
source · Expand description
PNG decode/encode and read/write functions, external crate type conversions and other utility functions.
Functions
Decodes and returns a PNG.
Encodes a PNG and writes it to a buffer.
Converts a
String to a image::codecs::png::CompressionType.
This can not be done by implementing the trait From<String> for CompressionType due to Rust’s.
orphan rule.Converts a
String to a image::codecs::png::FilterType.
This can not be done by implementing the trait From<String> for FilterType due to Rust’s
orphan rule.Maximum of two values that implement the
PartialOrd trait.Minimum of two values that implement the
PartialOrd trait.Reads a PNG from the local file system.
[SUPPORTED IN WASM] WASM stub; single-threaded write PNG to the
local file system.
Writes a PNG to the local file system using the provided compression
and filter definitions.
Writes a PNG to the local file system using the default
compression and filter settings.