Quick test code

This commit is contained in:
Gregory Ballantine 2024-05-17 13:42:55 -04:00
parent 1c23d82784
commit eec0f3fbf9
2 changed files with 7 additions and 1 deletions

View File

@ -6,3 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
image = "0.25"

View File

@ -1,3 +1,8 @@
use image::io::Reader as ImageReader;
fn main() { 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.");
} }