#------------------------------------------------------------------------------------------------- # Warning: # # **************************************************************************** # # >>> This process overwrites your files. Backup your files prior to use. <<< # # **************************************************************************** # # File: lr-datetime-equalize.args # # Description: Exiftool arguments file that drives equalization of date/time # metadata across all relevent JPG, CR2 and XMP file metadata fields. # # Purpose: To match all photo file date/time metadata fields to the same master date/time value. # # Reason: Many photo organizing and editing tools allow the change of one or more date/time # metadata fields. Doing so leaves the photo file(s) with some date/time fields that # do not match. Different photo geotagging, organizing and editing tools, as well as # photo hosting web sites, use different date/time metadata fields to establish # the date/time for the photo. This can cause many problems related to geolocation, # photo sorting, photo display order, etc. By equalizing, or matching, the date/time # information across all metadata date/time fields, the photos will 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-datetime.xls # exiftool: http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html # # Notes: * This argurments file sets the master (canonical) source metadata field for date/time # data as: XMP-xmp:CreateDate # # * 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' date/time metadata fields are # populated from the XMP file's XMP-xmp:CreateDate metadata field. # # RAW files Example: # 1. sample.cr2 # 2. sample.jpg # 3. sample.xmp # Each set of RAW files are treated as a unit. All date/time fields in each RAW file # unit are populated with the value in the XMP-xmp:CreateDate field in their .xmp file. # The date/time meta data fields in sample.cr2 and sample.jpg are populated with # the date/time value in the XMP-xmp:CreateDate field in sample.xmp. # All other date/time meta data fields in sample.xmp are populated with # the value in the XMP-xmp:CreateDate field in sample.xmp. # # * JPG files' date/time metadata fields are populated from their XMP-xmp:CreateDate # field. # # JPG file example: # 1. sample-two.jpg # Each JPG file is treated as a single source of date/time information for that file # and that file alone. # In this example, all date/time fields for sample-two.jpg are populated with the date # from the XMP-xmp:CreateDate field in sample-two.jpg. # # # * If you wish to drive the master date/time from another field other than # XMP-xmp:CreateDate field, 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 datetime 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. You may also need to change the # MakerNotes:TimeStamp tag in this arguments file to match your RAW file metadata tag name. # # * To exclcude a date/time metadata field from being populated, edit this file and place a # in the first column # the relevent mapping line. For example, by default, the tiff:DateTime field mapping is disabled by a #. # # # Warning: # # **************************************************************************** # # >>> This process overwrites your files. Backup your files prior to use. <<< # # **************************************************************************** # # #------------------------------------------------------------------------ # #--------- begin exiftool date/time metadata field mapping -------------- # # write the master date/time to the target metadata fields -XMP-xmp:CreateDate > EXIF:DateTimeOriginal -XMP-xmp:CreateDate > EXIF:CreateDate -XMP-xmp:CreateDate > EXIF:ModifyDate -XMP-xmp:CreateDate > IPTC:DateCreated -XMP-xmp:CreateDate > IPTC:TimeCreated -XMP-xmp:CreateDate > IPTC:DigitalCreationDate -XMP-xmp:CreateDate > IPTC:DigitalCreationTime -XMP-xmp:CreateDate > XMP:Date -XMP-xmp:CreateDate > XMP-EXIF:DateTimeDigitized -XMP-xmp:CreateDate > XMP-EXIF:DateTimeOriginal -XMP-xmp:CreateDate > XMP-microsoft:DateAcquired -XMP-xmp:CreateDate > XMP-photoshop:DateCreated #-XMP-xmp:CreateDate > tiff:DateTime -XMP-xmp:CreateDate > XMP-xmp:CreateDate -XMP-xmp:CreateDate > XMP-xmp:ModifyDate -XMP-xmp:CreateDate > MakerNotes:TimeStamp # set the Metadata Date/Time to the current date and time -now > XMP-xmp:MetadataDate # #------ end exiftool date/time metadata field mapping -----------------