xmp2iptc.args 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #------------------------------------------------------------------------------
  2. # File: xmp2iptc.args
  3. #
  4. # Description: Tag name translations for converting from XMP to IPTC
  5. #
  6. # Usage: exiftool -tagsFromFile SRCFILE -@ xmp2iptc.args DSTFILE
  7. #
  8. # Requires: ExifTool version 7.45 or later
  9. #
  10. # Revisions: 2005/05/14 - P. Harvey Created
  11. # 2008/03/04 - PH Changed Location translation and added
  12. # IntellectualGenre and SubjectCode
  13. # 2008/09/30 - PH Added writing of Photoshop:IPTCDigest
  14. # 2009/01/20 - PH Updated to conform with MWG spec
  15. # 2009/10/21 - PH Write IPTC:DigitalCreationDate/Time tags
  16. #
  17. # References: http://www.iptc.org/IPTC4XMP/
  18. # http://www.iptc.org/IIM/
  19. # http://www.adobe.com/products/xmp/pdfs/xmpspec.pdf
  20. # http://www.metadataworkinggroup.org/specs/
  21. #
  22. # Notes: 1) Also updates Photoshop:IPTCDigest as per MWG recommendation.
  23. #
  24. # 2) For special characters in the XMP to be preserved, the IPTC
  25. # encoding must be UTF-8: Either IPTC:CodedCharacterSet must
  26. # already be "UTF8", or it must be set to "UTF8" when copying the
  27. # XMP. This is not done automatically by this argfile because it
  28. # could invalidate the encoding of existing IPTC if there were
  29. # any values containing special characters. See FAQ number 10
  30. # for more information about converting the IPTC encoding:
  31. # http://owl.phy.queensu.ca/~phil/exiftool/faq.html#Q10
  32. #
  33. # 3) These arguments will not delete IPTC tags which are missing
  34. # from the XMP. The IPTC tags should be deleted beforehand if
  35. # required.
  36. #------------------------------------------------------------------------------
  37. -IPTC:By-line < XMP-dc:Creator
  38. -IPTC:Caption-Abstract < XMP-dc:Description
  39. -IPTC:CopyrightNotice < XMP-dc:Rights
  40. -IPTC:Keywords < XMP-dc:Subject
  41. -IPTC:ObjectName < XMP-dc:Title
  42. -IPTC:By-lineTitle < XMP-photoshop:AuthorsPosition
  43. -IPTC:Writer-Editor < XMP-photoshop:CaptionWriter
  44. -IPTC:Category < XMP-photoshop:Category
  45. -IPTC:City < XMP-photoshop:City
  46. -IPTC:Country-PrimaryLocationName < XMP-photoshop:Country
  47. -IPTC:Credit < XMP-photoshop:Credit
  48. -IPTC:DateCreated < XMP-photoshop:DateCreated
  49. # magically extracts time from a date/time value
  50. -IPTC:TimeCreated < XMP-photoshop:DateCreated
  51. -IPTC:Headline < XMP-photoshop:Headline
  52. -IPTC:SpecialInstructions < XMP-photoshop:Instructions
  53. -IPTC:Source < XMP-photoshop:Source
  54. -IPTC:Province-State < XMP-photoshop:State
  55. -IPTC:SupplementalCategories < XMP-photoshop:SupplementalCategories
  56. -IPTC:OriginalTransmissionReference < XMP-photoshop:TransmissionReference
  57. -IPTC:Urgency < XMP-photoshop:Urgency
  58. -IPTC:Country-PrimaryLocationCode < XMP-iptcCore:CountryCode
  59. -IPTC:Sub-location < XMP-iptcCore:Location
  60. -IPTC:DigitalCreationDate < XMP-xmp:CreateDate
  61. -IPTC:DigitalCreationTime < XMP-xmp:CreateDate
  62. # these tags are not free-form text, and may need special handling:
  63. #-IPTC:ObjectAttributeReference < XMP-iptcCore:IntellectualGenre
  64. #-IPTC:SubjectReference < XMP-iptcCore:SubjectCode
  65. -Photoshop:IPTCDigest=new
  66. # end