Preserve All Exif/XMP metadata #80
-
Do you have an example on how to preserve the GPS meta data? as after running the process it strips them all out. There are no clear examples (From what we can see) on what metadatanames we need to add to the collection as part of the proccessImageSettings to carry over them to the output stream. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
GPS is a tricky one. The docs for the Windows photo metadata policies list values like
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.LongitudeDenominator",
"System.GPS.LongitudeRef"
} |
Beta Was this translation helpful? Give feedback.
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:If you split them out as described, it should work. For example, the following works for preserving GPS lat/long from an iPhone photo.