pub fn image_compression_from(compression: String) -> CompressionType
Expand description
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.