Function pconvert_rust::utils::image_compression_from  
source · pub fn image_compression_from(compression: String) -> CompressionTypeExpand 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.