#------------------------------------------------------------------------------------------------- # Warning: # # **************************************************************************** # # >>> This process overwrites your files. Backup your files prior to use. <<< # # **************************************************************************** # # File: lr-datetime-equalize-jpg.args # # Description: Exiftool arguments file that drives equalization of caption, creator and copyright # metadata across all relevent JPG, CR2 and XMP file metadata fields. This aruguments # file is for use with standalone jpg files (not RAW files and their sidecar jpg and xmp files). # Purpose: To match all photo file caption, creator and copyright metadata fields to the same values. # # Reason: Many photo organizing and editing tools allow the change of one or more # metadata fields. Doing so leaves the photo file(s) with some metadata fields that # do not match. Different photo geotagging, organizing and editing tools, as well as # photo hosting web sites, display different metadata fields for the photos. # This can cause many problems related to mismatched captions, labels, titles, etc. # on the same photo. By equalizing, or matching, the metadata across all relevent metadata fields, # the photos will be treated, processed, displayed, etc. the same by all photo tools and web sites. # # # # Usage: batch file: this args file is desigend for use with lr-datetime-equalize.bat # # Revisions: 2011/07/12 - V1.00 Douglas Hackney created dhackney@egltd.com # # # References: metadata: http://www.metadataworkinggroup.org/specs/ # http://www.hackneys.com/travel/docs/metadataoverview.pdf # http://www.hackneys.com/travel/docs/photo-metadata-ccc.xls # exiftool: http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html # # Notes: # * This argurments file is for standalone jpg files (not RAW files and their sidecar jpg and xmp files). # # * The XMP-xmp:CreateDate field was chosen as master because Adobe Lightroom changes the # XMP-xmp:CreateDate field in both RAW sidecar XMP files and standalone JPG files when # the "Menu: Metadata : Edit capture time" is used. # # * If you use a different photo organizing / editing application, you may want or need # to choose a different master date/time field. You can change the master date/time # field in the metadata date/time field mappings below. # # * All date/time fields of all relevent photo files are set to match the value in the # master source XMP-xmp:CreateDate field. # # * The MetadataDate field is set to the current date and time that the utility executes. # # * RAW files' CR2 and sidecar JPG and XMP files' caption, creator and copyright metadata fields are # populated from the XMP file's metadata fields. # # RAW files Example: # 1. sample.cr2 # 2. sample.jpg # 3. sample.xmp # Each set of RAW files are treated as a unit. All caption, creator and copyright fields in each RAW file # unit are populated with the values in the fields in their .xmp file. # The caption, creator and copyright meta data fields in sample.cr2 and sample.jpg are populated with # the date/time value in the caption, creator and copyright fields in sample.xmp. # # # * JPG files' caption, creator and copyright metadata fields are populated from their relevant # caption, creator and copyright fields. # # JPG file example: # 1. sample-two.jpg # Each JPG file is treated as a single source of caption, creator and copyright information for that file # and that file alone. # In this example, all caption, creator and copyright fields for sample-two.jpg are populated with the # caption, creator and copyright data from the relevant caption, creator and copyright fields in sample-two.jpg. # # # * If you wish to drive the source caption, creator and copyright data from diffrent fields other than # the sources used, edit the parameters below. # # * The batch file that calls this arguments file processes Canon CR2 (RAW) files first, then JPG files. # # * This process populates all caption, creator and copyright fields in all file types: CR2, JPG and XMP # # * If you wish to use this utility for non-Canon RAW files, edit the batch file to change the filename # extension CR2 and cr2 to your applicable RAW filetype extension, e.g., NEF. # # * To exclude a caption, creator or copyright metadata field from being populated, edit this file and place a # in the first column # of the relevent mapping line. # # # Warning: # # **************************************************************************** # # >>> This process overwrites your files. Backup your files prior to use. <<< # # **************************************************************************** # # #------------------------------------------------------------------------ # #--------- begin exiftool caption, creator and copyright metadata field mapping -------------- # # This mapping is for standalone jpg files (not RAW files and their sidecar jpg and xmp files). # # write the caption, creator and copyright to the target metadata fields -IPTC:Caption-Abstract > ExifIFD:UserComment -IPTC:By-line > IFD0:Artist -IPTC:CopyrightNotice > IFD0:Copyright -IPTC:Caption-Abstract > IFD0:ImageDescription -XMP-xmp:Rating > IFD0:Rating -IPTC:Caption-Abstract > XMP-acdsee:Caption -IPTC:By-line > XMP-dc:Creator -IPTC:Caption-Abstract > XMP-dc:Description -IPTC:CopyrightNotice > XMP-dc:Rights -IPTC:Keywords > XMP-dc:Subject -IPTC:ObjectName > XMP-dc:Title -IPTC:Caption-Abstract > XMP-exif:UserComment -IPTC:Country-PrimaryLocationCode > XMP-iptcCore:CountryCode -IPTC:Sub-location > XMP-iptcCore:Location -IPTC:By-lineTitle > XMP-photoshop:AuthorsPosition -IPTC:Writer-Editor > XMP-photoshop:CaptionWriter -IPTC:Category > XMP-photoshop:Category -IPTC:City > XMP-photoshop:City -IPTC:Country-PrimaryLocationName > XMP-photoshop:Country -IPTC:Credit > XMP-photoshop:Credit -IPTC:Headline > XMP-photoshop:Headline -IPTC:SpecialInstructions > XMP-photoshop:Instructions -IPTC:Province-State > XMP-photoshop:State -IPTC:Source > XMP-photoshop:Source -IPTC:SupplementalCategories > XMP-photoshop:SupplementalCategories -IPTC:OriginalTransmissionReference > XMP-photoshop:TransmissionReference -IPTC:Urgency > XMP-photoshop:Urgency -IPTC:Caption-Abstract > XMP-tiff:ImageDescription -IPTC:Caption-Abstract > File:Comment # set the Metadata Date/Time to the current date and time -now > XMP-xmp:MetadataDate # #------ end exiftool date/time metadata field mapping -----------------