Are there Rust features I could apply to optimize for simple test of a JPEG or PNG resized from 2000 x 2000 pixels to 150 x 150 pixels?
extern crate image;
use std::env;
fn main() {
let mut args = env::args();
args.next();
let file_location = args.next().unwrap();
let width = args.next().unwrap().parse().unwrap();
let height = args.next().unwrap().parse().unwrap();
let img = image::open(file_location.as_str()).unwrap();
// img.resize(width, height, image::imageops::Lanczos3);
img.thumbnail(width, height);
}