imghdr 0.7.0

Library that determines the type of image contained in a file or byte stream.
Documentation
1
2
3
4
5
6
7
8
9
use std::env;

extern crate imghdr;

fn main() {
    for path in env::args().skip(1) {
        println!("{:?}", imghdr::from_file(&path));
    }
}