Function exif::parse_image [] [src]

pub fn parse_image<'a, R>(reader: &mut R,
                          buf: &'a mut Vec<u8>)
                          -> Result<(Vec<Field<'a>>, bool), Error> where R: BufRead
Deprecated since 0.1.2

: use exif::Reader instead

Parse the Exif attributes in a JPEG or TIFF image data.

Returns a Vec of Exif fields and a bool. The boolean value is true if the data is little endian. If an error occurred, exif::Error is returned.

The buf must be an empty Vec<u8> when this function is called. The raw Exif data is read into it.