Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Get The Size Of An Image In Rust

rust
use imagesize::size;

fn main() {
    let img = size("image_test/tmp.png").unwrap();
    dbg!(img.width);
    dbg!(img.height);

}

use : [TODO: Code shorthand span ] to get the crate installed.