|0.1.2||Dec 29, 2022|
|0.1.1||Nov 7, 2022|
|0.1.0||Nov 7, 2022|
#1022 in Filesystem
31 downloads per month
This is the Rust API for libopenraw.
It needs libopenraw 0.3 by way of
Its current implementation is limited to extrating thumbnails.
use libopenraw as or; let raw_file = or::RawFile::from_file(path, or::RawFileType::Unknown) .expect("Couldn't open raw file"); let orientation = raw_file.get_orientation(); let thumbnail = raw_file.get_thubmnail(160).expect("Couldn't find thumbnail"); // Get the size fo the thumbnail let (x, y) = thumbnail.get_dimensions(); let buf = thumbnail.get_data().expect("Couldn't get the data");