fn main() { let args: Vec = std::env::args().collect(); if args.len() != 3 { println!("Usage:\n\tminimal "); return; } let mut opt = resvg_raqote::Options::default(); opt.usvg.path = Some(args[1].clone().into()); let rtree = usvg::Tree::from_file(&args[1], &opt.usvg).unwrap(); let img = resvg_raqote::render_to_image(&rtree, &opt).unwrap(); img.write_png(&args[2]).unwrap(); }