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 MakerNote: Allow callable to process tag value #189

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

TheDJVG
Copy link

@TheDJVG TheDJVG commented Oct 22, 2023

While working on some images I found that the library did not expose the 'CameraTemperature' tag from the ShotInfo MakerNote.

To support this I added a callable and allow that callable to be called with the tag value. I might be useful for other tags too.

Example output from a JPEG image taken on a Canon EOS 2000D:

>>> exif = exifread.process_file(fd, details=True)
>>> exif["MakerNote CameraTemperature"]
(0x0000) Proprietary=55 C @ 0

While working on some images I found that the library did not expose the 'CameraTemperature' tag from the ShotInfo MakerNote.

To support this I added a callable and allow that callable to be called with the tag value. I might be useful for other tags too.

Example output from a JPEG image taken on a Canon EOS 2000D:
```
>>> exif = exifread.process_file(fd, details=True)
>>> exif["MakerNote CameraTemperature"]
(0x0000) Proprietary=55 C @ 0
```

Signed-off-by: Daan van Gorkum <djvg@djvg.net>
@TheDJVG
Copy link
Author

TheDJVG commented Oct 22, 2023

I don't think the test failures are related to my changes but let me know if they are and happy to amend.

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.

1 participant