Quick test code
This commit is contained in:
parent
1c23d82784
commit
eec0f3fbf9
@ -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"
|
||||||
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user