Back to Blog
Migrating from iphoto to photos6/28/2023 You can also put it into a shell script., and invoke it from there. This can be run directly on the commandline by removing all newlines. Orig=($orig) # Apply the glob expression, select resultĮxiftool -overwrite_original_in_place -tagsFromFile "$mod" -gps:all "$orig" Įcho "No corresponding file for $mod found. # There are probably more elegant ways, but I don't know much bash A Bash solutionįiletests: ( -e tests for existence of files) If this glob matches no files, we print an error message, but simply carry on. We further change the file extension to * so that we have another glob expression. Given a full path, we can substitute the Photo-Mod for Photo-Orig. This is easy by using a glob expression like ~/Photo-Mod/*/*. Invoke exiftools with correct arguments.Find each corresponding photo under Photos-Orig.Find all photos under the Photos-Mod directory.The problem consists of the following parts: I'm hoping that there is a good way to make a script that can run exiftool on the iPhoto modified files in the Photos-Mod parent directory, and move the GPS data to the original file of matching file name and event directory in the Photos-Orig parent directory. The directory tree and file names will be identical except for the main directory name and the file extension (in some cases, my original is also a jpeg). The Photos-Mod files have the GPS data from iPhoto, and Photos-Orig do not. I can do #3 one photo at a time with the following command: exiftool -overwrite_original_in_place -tagsFromFile ~/Photos-Mod/Event001/photo001.jpg -gps:all ~/Photos-Orig/Event001/photo001.NEF So my proposed solution is this:ġ) Export all original RAW photos into a directory tree sorted by event name.Ģ) Export all photos as JPEGs with the GPS data embedded in the EXIF data (as iPhoto can do).ģ) Use "exiftool" to pull the GPS data from the jpeg and copy it in to the matching raw file. I can transfer the data by exporting but I want the original RAW files which iPhoto won't modify. I am trying to move my library of photos (over 12000) out of iPhoto for use in Adobe Lightroom and would like to include the GPS data I've added to the photos using iPhoto's in-app feature (This data is stored in Apple's proprietary database, not as metadata in the photo itself).
0 Comments
Read More
Leave a Reply. |