0
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). I can transfer the data by exporting but I want the original RAW files which iPhoto won't modify. So my proposed solution is this:
1) Export all original RAW photos into a directory tree sorted by event name. 2) Export all photos as JPEGs with the GPS data embedded in the EXIF data (as iPhoto can do). 3) Use "exiftool" to pull the GPS data from the jpeg and copy it in to the matching raw file.
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
The Photos-Mod files have the GPS data from iPhoto, and Photos-Orig do not. 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). 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.
I just don't have the scripting skills. Any help here would be hot.
This question is a bit too far into the “gimme teh codez plz” region, but I think I can help you solve the problem yourself. First, a few important questions: ① Do you have any programming experience (if yes, of what form)? This helps targeting explanations. ② Can you guarantee the only difference between photo paths is
Mod
changing toOrig
, and the extension changing fromjpg
toNEF
? ③ Is the depth of the photo paths constant, or do some event folders have sub-folders that should be visited? ④ Do you want to use Perl or Bash? – amon – 2013-04-30T23:56:50.793amon, Totally "gimme teh codez plz" (sorry)but I will take any help you can give in learning how to solve my problem. I have limited experience, just wayyyy out of practice. Matlab mostly and some shell scripting (bash). Used sed and grep a lot for the last. But I am 10 years out of practice.
The difference will be Mod to Orig as you said and the extension, but some of the extensions won't change. (some will be .NEF > .jpg, and others will be .jpg > .jpg)
The depth will be constant. I organize as Photos-Orig/Year/Event001/photo001.NEF
I am most familiar with bash, zero experience with perl. – Ben Gross – 2013-05-01T16:55:47.147