xmp2exif.args 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #------------------------------------------------------------------------------
  2. # File: xmp2exif.args
  3. #
  4. # Description: Tag name translations for converting XMP to EXIF
  5. #
  6. # Usage: exiftool -tagsFromFile SRCFILE -@ xmp2exif.args DSTFILE
  7. #
  8. # Requires: ExifTool version 8.60 or later
  9. #
  10. # Revisions: 2009/01/20 - P. Harvey Created
  11. # 2011/06/22 - PH Copy flash information via Composite:Flash
  12. # 2013/06/12 - PH Additions for the Exif 2.3 for XMP spec
  13. # 2015/01/12 - PH Avoid copying from non-standard namespaces
  14. #
  15. # References: http://www.metadataworkinggroup.org/specs/
  16. #
  17. # Notes: 1) The first three arguments copy the bulk of the EXIF and GPS
  18. # information, and the remaining arguments handle the tags
  19. # which have different names and/or formats in XMP and EXIF.
  20. #
  21. # 2) These arguments will not delete EXIF tags which are missing
  22. # from the XMP. The EXIF tags should be deleted beforehand if
  23. # required.
  24. #------------------------------------------------------------------------------
  25. -EXIF:all < XMP-exif:all
  26. -EXIF:all < XMP-exifEX:all
  27. -EXIF:all < XMP-tiff:all
  28. -EXIF:ImageDescription < XMP-dc:Description
  29. -EXIF:DateTimeOriginal < XMP-photoshop:DateCreated
  30. # magically extracts sub-seconds from date/time value if available
  31. -EXIF:SubSecTimeOriginal < XMP-photoshop:DateCreated
  32. -EXIF:CreateDate < XMP-xmp:CreateDate
  33. -EXIF:SubSecTimeDigitized < XMP-xmp:CreateDate
  34. -EXIF:ModifyDate < XMP-xmp:ModifyDate
  35. -EXIF:SubSecTime < XMP-xmp:ModifyDate
  36. -EXIF:Software < -XMP-xmp:CreatorTool
  37. -EXIF:Copyright < XMP-dc:Rights
  38. -EXIF:Artist < XMP-dc:Creator
  39. # XMP flash information is translated by the Composite Flash tag
  40. -EXIF:Flash < Composite:Flash
  41. # generate GPS tags which have been combined into other XMP tags
  42. -GPS:GPSLatitudeRef < Composite:GPSLatitudeRef
  43. -GPS:GPSLongitudeRef < Composite:GPSLongitudeRef
  44. -GPS:GPSDatestamp < XMP-exif:GPSDateTime
  45. -GPS:GPSTimestamp < XMP-exif:GPSDateTime
  46. # end