Function imsz::imsz_from_reader

source ·
pub fn imsz_from_reader<R>(file: &mut R) -> ImResult<ImInfo>where
    R: Read + 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.