Last active
August 5, 2023 12:46
-
-
Save chrisgilbert/755a8e033cd7a072ed6f0c3abd757976 to your computer and use it in GitHub Desktop.
Copy Apple XMP subject info to original file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://exiftool.org/forum/index.php?topic=13167.msg71166#msg71166 | |
# Also https://raw.githubusercontent.com/exiftool/exiftool/master/arg_files/xmp2exif.args | |
# Fix info including GPS | |
exiftool -overwrite_original_in_place -r -wm cg -ext mov -api QuickTimeUTC=1 -tagsFromFile %d%f.xmp '-AllDates<XMP-photoshop:DateCreated' '-Track*Date<XMP-photoshop:DateCreated' '-Media*Date<XMP-photoshop:DateCreated' '-Keys:CreationDate<XMP-photoshop:DateCreated' '-Keys:GPSCoordinates<$XMP:GPSLatitude# $XMP:GPSLatitudeRef, $XMP:GPSLongitude# $XMP:GPSLongitudeRef' '-Keys:DisplayName<XMP-dc:Title' '-Keys:Description<XMP-dc:Description' '-Keys:Keywords<XMP-dc:Subject' '-FileCreateDate<XMP-photoshop:DateCreated' '-FileModifyDate<XMP-photoshop:DateCreated' . | |
# Just import additional descriptions and keywords to original, don't replace any existing tag | |
# also change file modification and creation dates to dates of xmp data | |
exiftool -overwrite_original_in_place -wm cg -ext jpg -ext heic -tagsFromFile %d%f.xmp '-Keys:DisplayName<XMP-dc:Title' '-Keys:Description<XMP-dc:Description' '-Keys:Keywords<XMP-dc:Subject' '-EXIF:all<XMP-exif:all' -EXIF:all<XMP-exifEX:all' . | |
# All new tags, set file modify date | |
# Run these | |
exiftool -overwrite_original_in_place -r -wm cg -ext mov -api QuickTimeUTC=1 -tagsFromFile %d%f.xmp '-AllDates<XMP-photoshop:DateCreated' '-Track*Date<XMP-photoshop:DateCreated' '-Media*Date<XMP-photoshop:DateCreated' '-Keys:CreationDate<XMP-photoshop:DateCreated' '-Keys:GPSCoordinates<$XMP:GPSLatitude# $XMP:GPSLatitudeRef, $XMP:GPSLongitude# $XMP:GPSLongitudeRef' '-Keys:DisplayName<XMP-dc:Title' '-Keys:Description<XMP-dc:Description' '-Keys:Keywords<XMP-dc:Subject' . | |
exiftool -overwrite_original_in_place -r -wm cg -ext jpg -ext heic -tagsfromfile %d%f.xmp -all:all . | |
exiftool -overwrite_original_in_place -r -ext jpg -ext heic -tagsfromfile %d%f.xmp '-FileCreateDate<XMP-photoshop:DateCreated' '-FileModifyDate<XMP-photoshop:DateCreated' . | |
exiftool -overwrite_original_in_place -r -ext mov -api QuickTimeUTC=1 -tagsFromFile %d%f.xmp '-FileCreateDate<XMP-photoshop:DateCreated' '-FileModifyDate<XMP-photoshop:DateCreated' . | |
# Add IPTC tags | |
# https://github.com/exiftool/exiftool/blob/master/arg_files/xmp2iptc.args |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment