Consolidating all photos in iphoto
My approach would thus mean that we would lose stars & face tags, but we considered this an acceptable trade off. This would allow us to find more duplicates, even if the EXIF information had been edited; however it runs much, much slower than just using MD5 so I chose not to use it.Consolidating and de-duping the libraries would be worth it. One worry I had was how to make sure I got hold of all the originals from i Photo.We had about 25,000 photos in one library from a previous (unsuccessful) attempt at consolidating libraries.We had two further libraries containing about 13,000 and 10,000 images each, and a fourth i Photo library on a separate machine, plus the aforementioned random grab-bag of directories full of images.
Fortunately, a little experimentation showed that i Photo does not change the image files but stores this extra information in a separate database. The Imagemagick suite of tools comes with the identify program, which allows you to get a hash of just the image data.Since I had Time Machine backups (yes, plural—I rotate two Time Machine disks) I felt OK doing this. We only needed to because we had imported the same photos into multiple photo albums.We are really happy with the result :-) Update 2014/05/08: A few days ago I received a question to this post from Jeff Ruth. If you have a minute, could you please tell me how I can use your code, or do this a different way, without the program? The script was intended for developers, but if you want to try you have to copy the file (dedupe-media.sh) to your local disk, then make it executable.(In your case, probably your wife's library, your daughter will just have to recreate her albums) If you have an external drive: Copy this primary library onto the external HDD, Get Info on the external and enable Ignore Permissions on the drive.Reference: If you don't have an external drive: Make copies of both i Photo libraries in the /Users/Shared/ folder. Find the secondary library in Finder, right click and chose "Show Package Contents".
Thus files whose content were identical, but had different names, would now end up with the same name.