-
-
Notifications
You must be signed in to change notification settings - Fork 631
Add basic thumbnail extraction to Rawkit #2659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
The code looks good (although I don't really understand the RAW formats very well). From what I can tell the transform -> orientation rename is probably beneficial for clarity.
#[derive(Debug, PartialEq, Eq, Clone, Copy, IntoPrimitive, TryFromPrimitive)] | ||
#[repr(u16)] | ||
#[allow(non_camel_case_types)] | ||
pub enum CompressionValue { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to comment where these values have come from?
let mut file = TiffRead::new(reader)?; | ||
let ifd = Ifd::new_first_ifd(&mut file)?; | ||
|
||
// TODO: ARW files Store the thumbnail offset and length in the first IFD. Add support for other file types in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worthwhile to do an assert on metadata::identify::identify_camera_model
?
c7488cf
to
1875779
Compare
No description provided.