pub fn imsz_from_reader<R>(file: &mut R) -> ImResult<ImInfo> where R: Read, R: Seek,
Read width and height of an image.
Some file formats (like JPEG) need repeated small reads, so passing a std::io::BufReader is recommended.
std::io::BufReader