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

Focal Plane Resolution misreported for Canon 6d mk2 #3097

Open
tomaszg7 opened this issue Dec 21, 2024 · 2 comments
Open

Focal Plane Resolution misreported for Canon 6d mk2 #3097

tomaszg7 opened this issue Dec 21, 2024 · 2 comments

Comments

@tomaszg7
Copy link

Describe the bug

Values of FocalPlaneXResolution and FocalPlaneYResolution for images taken winth Canon 6d mk2 are incorrect. I suspect it is a bug in hardware and exiv2 just reports what is sitting in the file, however it leads to problems down the line as software miscomputes e.g. crop factor based on this data. I don't know if exiv2 practice is to add a workaround to this issue.

To Reproduce

Steps to reproduce the behavior:

  1. On a clean file from the camera I get:
exiv2 --print a img_20240309_155531.cr2 |grep FocalPlane
Exif.Photo.FocalPlaneXResolution             Rational    1  6673.8
Exif.Photo.FocalPlaneYResolution             Rational    1  6720.52
Exif.Photo.FocalPlaneResolutionUnit          Short       1  inch

Expected behavior

Photos have width 6240 which would make sensor width approx. 1 inch. It is incorrect, since it is a full-frame camera with sensor 35.9 mm wide. Either sensor resolution should be lower, or resolution unit is misreported.

Desktop (please complete the following information):

  • OS and version: Linux (Gentoo)
  • Exiv2 version and source: exiv2 0.28.3 (from distro)
  • Compiler and version: Gcc 14
  • Compilation mode and/or compiler flags: -O2

Additional context

  • The problem is also present in exiftool.
  • It causes e.g. darktable to compute crop factor as 1.5 and apply incorrect algorithms to process image.
  • If necessary I can supply a sample file.
  • I wanted to test it on other Canon, but raw.pixls.us is regretably down, so I checked only the results for 5d, 7d and 30d. All looked correct.
@boardhead
Copy link
Collaborator

This is likely a Canon bug. While I haven't checked this specific model, Canon is known to write an incorrect FocalPlaneResolution for some models.

  • Phil

@tomaszg7
Copy link
Author

I suppose so. What would be a proper way to handle it? Ignore it, since it is Canon bug, or add a workaround to Exiv2?

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

No branches or pull requests

3 participants