Skip to content
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

Canon CR3 files reporting incorrect Focus Distance values #605

Open
johnbaro opened this issue Feb 9, 2023 · 2 comments
Open

Canon CR3 files reporting incorrect Focus Distance values #605

johnbaro opened this issue Feb 9, 2023 · 2 comments

Comments

@johnbaro
Copy link

johnbaro commented Feb 9, 2023

Per this sample image, the values below show as zero, whereas the correct values are reported by exiftool

metadata-extractor

[Canon Makernote] Focus Distance Upper - 0
[Canon Makernote] Focus Distance Lower - 0

exiftool

Focus Distance Upper            : 0.95 m
Focus Distance Lower            : 0.94 m

I'd be happy to help out on this given some guidance as to where issue is occurring.

@drewnoakes
Copy link
Owner

Those tags are defined in:

public static final int TAG_FOCUS_DISTANCE_UPPER = OFFSET + 19;
public static final int TAG_FOCUS_DISTANCE_LOWER = OFFSET + 20;

Certain Canon makernote values have logic to present their values in:

It looks like there's no specific handling for those tags, so one idea would be to add them.

However I'm unclear whey we're showing a zero here. The first step would be to run in a debugger and identify what value was read from the backing data. It's possible the code that reads data into the CanonMakernoteDirectory is faulty here.

@johnbaro
Copy link
Author

Thanks @drewnoakes, I did run a debugger through and saw they were zero but didn't get further than that due to time.
I'll do a deeper dive shortly.

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

No branches or pull requests

2 participants