libopenraw 0.1.1

Rust API bindings for libopenraw
docs.rs failed to build libopenraw-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: libopenraw-0.4.0-alpha.12

libopenraw

This is the Rust API for libopenraw.

It needs libopenraw 0.3 by way of libopenraw-sys.

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");