pub fn convert( input: &str, output: &str, compress: bool, ) -> Result<usize, String>
Dispatch on extension. Returns the number of bytes written.