use caesium::parameters::CSParameters; use caesium::compress; use std::env; use std::process::ExitCode; fn main() -> ExitCode { let args: Vec = env::args().collect(); let input = args[1].clone(); let output = args[2].clone(); let mut parameters = CSParameters::new(); parameters.keep_metadata = true; parameters.jpeg.quality = 60; match compress(input, output, ¶meters) { Ok(_) => ExitCode::SUCCESS, Err(e) => { eprintln!("{}", e); ExitCode::FAILURE } } }