Open gilesknap opened 5 years ago
Great idea, I plan on also including Image.setById()
in this delivery as well.
Would this also allow reading proprietary tags that are readable via exiftool
binary, e.g.:
$ exiftool DJI_0001.JPG
...
Gimbal Roll Degree : +0.00
Gimbal Yaw Degree : -120.20
Gimbal Pitch Degree : -33.60
...
@lightheaded, I am not sure about your particular use case with gimbal roll, yaw, and pitch. Could you please provide a sample image so that I can investigate these tags and add support to the package if they aren't supported already?
Sure, here's an example image taken by a DJI Mavic 2 Pro:
@lightheaded , I finally had a chance to look at your sample image and notices that those tags are encoded in XMP format. Although they're different than EXIF tags, I think I'll add support for XMP tags to this package. I plan on developing a prototype of this functionality in the next week or two using your drone tags.
If exif encounters tag IDs not listed in _constants.py then it cannot view them.
For example:- example image
exif ID 269 is Exif.Image.DocumentName.
DocumentName could be added to _constants, but since some camera manufacturers may create their own custom tags, it is perhaps best to support 'unknown' tags.
Maybe an additional function like
Image.getById(Id: int) -> Any
would work?