Function immeta::load [] [src]

pub fn load<R: ?Sized + BufRead + Seek>(r: &mut R) -> Result<GenericMetadata>

Attempts to load metadata for an image contained in the provided input stream.

This method automatically determines the format of the contained image. Because it may need to read the stream from the beginning several times, a Seek bound is necessary on the input stream. This may cause problems only with network streams as they are naturally not seekable, so one would need to buffer the data from them first.