drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.55k stars 479 forks source link

Allow Application Notes (XMP) in SubIFD #540

Closed drewnoakes closed 3 years ago

drewnoakes commented 3 years ago

Fixes #539

This is a port of https://github.com/drewnoakes/metadata-extractor-dotnet/pull/298/

This fixes an issue where XMP data was not being extracted from some DJI images, and allows presentation of data such as:

[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:AbsoluteAltitude = -30.037239
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:RelativeAltitude = 19.700001
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:GimbalRollDegree = 0.000000
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:GimbalYawDegree = 69.400002
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:GimbalPitchDegree = -60.000000
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:FlightRollDegree = -2.100000
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:FlightYawDegree = 69.699997
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:FlightPitchDegree = -0.500000
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:CamReverse = 0
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:GimbalReverse = 0
[XMPMeta - http://www.dji.com/drone-dji/1.0/] drone-dji:RtkFlag = 0