diff --git a/Cargo.toml b/Cargo.toml index aa7c219..aa3479f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +image = "0.25" diff --git a/src/main.rs b/src/main.rs index e7a11a9..3f9a804 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,8 @@ +use image::io::Reader as ImageReader; + fn main() { - println!("Hello, world!"); + println!("Converting test.svg to test.png."); + let img = ImageReader::open("test.svg")?.decode()?; + img.save("test.png")?; + println!("Done."); }