ianare / exif-py

Easy to use Python module to extract Exif metadata from digital image files.
BSD 3-Clause "New" or "Revised" License
831 stars 191 forks source link

Canon MakerNote: Allow callable to process tag value #189

Open TheDJVG opened 10 months ago

TheDJVG commented 10 months ago

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
TheDJVG commented 10 months ago

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