xmp2gps.args 1.2 KB

12345678910111213141516171819202122232425262728
  1. #------------------------------------------------------------------------------
  2. # File: xmp2gps.args
  3. #
  4. # Description: Argument file for copying GPS information from XMP to EXIF
  5. #
  6. # Usage: exiftool -tagsFromFile SRCFILE -@ xmp2gps.args DSTFILE
  7. #
  8. # Requires: ExifTool version 6.75 or later
  9. #
  10. # Revisions: 2009/01/09 - P. Harvey Created
  11. #
  12. # Notes: 1) Most of the GPS tags are copied by the first argument, but
  13. # the coordinate references and date/time values are stored
  14. # separately in EXIF, so they must be handled separately.
  15. # A bit of magic is employed by ExifTool to extract the date
  16. # and time parts respectively when writing date-only and
  17. # time-only tags with a date/time value.
  18. #
  19. # 2) These arguments will not delete GPS tags which are missing
  20. # from the XMP. The GPS tags should be deleted beforehand if
  21. # required.
  22. #------------------------------------------------------------------------------
  23. -GPS:all < XMP-exif:all
  24. -GPS:GPSLatitudeRef < Composite:GPSLatitudeRef
  25. -GPS:GPSLongitudeRef < Composite:GPSLongitudeRef
  26. -GPS:GPSDateStamp < XMP-exif:GPSDateTime
  27. -GPS:GPSTimeStamp < XMP-exif:GPSDateTime
  28. # end