Call Reader::read_raw from read_from_container.
This commit is contained in:
parent
3d32b596de
commit
8a853122ac
|
@ -107,16 +107,7 @@ impl Reader {
|
||||||
return Err(Error::InvalidFormat("Unknown image format"));
|
return Err(Error::InvalidFormat("Unknown image format"));
|
||||||
}
|
}
|
||||||
|
|
||||||
let (entries, le) = tiff::parse_exif(&buf)?;
|
self.read_raw(buf)
|
||||||
let entry_map = entries.iter().enumerate()
|
|
||||||
.map(|(i, e)| (e.ifd_num_tag(), i)).collect();
|
|
||||||
|
|
||||||
Ok(Exif {
|
|
||||||
buf: buf,
|
|
||||||
entries: entries,
|
|
||||||
entry_map: entry_map,
|
|
||||||
little_endian: le,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue