How to Drastically Reduce an Overgrown iPhoto Library by Starting from Scratch
Note: Below are the steps I took to cleanup my personal iPhoto library. Your mileage may vary, and as always, before doing something drastic like this, make sure you have a good backup. Also, this was done using iPhoto ’11. I don’t know if the same process works on previous versions. Also, this tutorial only outlines how to save your photos and events. I did not bother saving any albums or projects from my previous library. I highly recommend reading through the steps prior to going to the process to ensure you are comfortable with everything that is required.
I’m looking forward to Apple’s OS X Lion upgrade that was released today. I’m hoping to breathe some life back into my MacBook Pro by doing a clean install and then just importing and installing only the things I need as I need them. In investigating what was using up the majority of my hard drive space I discovered that my iPhoto library was using up 24 GBs of space.
24 GB! That was shocking to me as I don’t take that many pictures. What I’ve determined is that over the years of iPhoto upgrades my library has collected a lot of cruft. Thumbnails, iPod Sync Versions, Originals and who knows what else seem to be using up a ton of space.
It is possible to get into the guts of an iPhoto library and try to manually remove junk like the above, however, you are almost guaranteed to screw something up and I would recommend to just avoid this idea altogether.
My solution instead, was to export all my photos, wipe out my existing library and create a new one from scratch. I was able to reduce my library down to about 11 GB. That’s a 13 GB savings in space without the loss of any photos! Below are the steps to do this.
1. Re-Title All the Photos in Your Library
The first frustrating thing about iPhoto’s export functionality is that it does not have an option to export your Events in bulk to corresponding folders. If it did, this tutorial would be 2 steps. Instead, I had to export all my photos into one folder and then use a script to file them into folders correctly based on their filename.
To get the filenames consistent, first select all of your events, and from the “Photos” menu choose “Batch Change…”. Then tell it to “Set Title to Event Name”.
This will update the titles for all your photos to look something like “My Event – 0001″.
2. Export All Photos to a Folder
Create a folder somewhere in your system to export everything to. I created a folder called “Photos_Current” in my Downloads folder. Now, again, select all your events and from the “File” menu, choose “Export…”.
From the “File Export” tab we have a decision to make. When you modify a photo in iPhoto it keeps the original version as well as the updated version. This is nice if you ever want to roll back an image, but not nice if you are looking to clean up some space. For me, I assume that if I modified a photo, say I cropped it down, straightened it or removed red-eye, the current one is the one I really care about. If you prefer the original version then that’s fine to, it means you can skip step 2b below.
So next I set the “Kind” to “Current” and the “File Name” to “Use title”.
This step is optional, if you chose to export Original instead of Current in the previous step, or you do not have any videos in your library, you can move on to step 3.
When exporting Current iPhoto does not properly export videos. They show up as single frame files rather than full videos. To correct this, we have to do another export similar to the above, but choosing “Original” and exporting that into a different folder.
Once that export is complete, you will need to manually copy the video files (could be of many types, MOV, MPG, AVI, MP4, etc…) into the first export. Once those are copied over, you can delete the rest of the second export.
3. Trash Your Old Library
Again, make sure you have a backup, but if you do, go ahead and close iPhoto and delete your library. Usually this is called “iPhoto Library” in your “Pictures” folder.
4. Organize Your Photos Into Foldres
So at this point we have one folder with all our files export named after the Events they were a part of. This is where things require a bit of technical know-how. Luckily for us, someone out there has already written a script to do just that.
You can follow the instructions at http://hints.macworld.com/article.php?story=20081108132735425 to learn how to run this script.
Once it is complete, you should now have a series of folders named the same as your original Events.
5. Create a New iPhoto Library
Open iPhoto. Its going to complain about a missing library (remember we deleted it). Just choose “Create New” and you can create a new “iPhoto Library” wherever you want, though I suggest just putting it back in the “Pictures Folder”
6. Import Your Photos Back In
This step is easy, just select all the folders that were created by the script, and drag them into iPhoto. It will automatically being the import process and when it is done, you will see that it has turned all the folders back into Events.
And that’s it. Not too bad and you get a huge space savings, or at least I did.
– Greg Martin
Explore posts in the same categories: Uncategorized