pub fn imsz_from_reader<R>(file: &mut R) -> ImResult<ImInfo> where
    R: Read,
    R: Seek
Expand description

Read width and height of an image.

Some file formats (like JPEG) need repeated small reads, so passing a std::io::BufReader is recommended.