Skip to content

Preserve All Exif/XMP metadata #80

Answered by saucecontrol
Adamholland48 asked this question in Q&A
Discussion options

You must be logged in to vote

GPS is a tricky one. The docs for the Windows photo metadata policies list values like System.GPS.Latitude, but these cannot be used directly. There's a note in the docs for that one that explains:

This value can be written by writing to System.GPS.LatitudeNumerator and System.GPS.LatitudeDenominator. It cannot be written directly. Values from different schemas are reconciled.

If you split them out as described, it should work. For example, the following works for preserving GPS lat/long from an iPhone photo.

MetadataNames = new[] {
  "System.GPS.LatitudeNumerator",
  "System.GPS.LatitudeDenominator",
  "System.GPS.LatitudeRef",
  "System.GPS.LongitudeNumerator",
  "System.GPS.Longitude…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Adamholland48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants