Skip to content

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

geom3trik
Copy link
Contributor

No description provided.

@geom3trik geom3trik marked this pull request as ready for review May 20, 2025 17:52
Copy link
Member

@0HyperCube 0HyperCube left a 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 {
Copy link
Member

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.
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants