[][src]Function pconvert_rust::utils::image_compression_from

pub fn image_compression_from(compression: String) -> CompressionType

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.