How can I clean up garbage from a Photos library?

Hi!


I just made a copy of my main Photos library in order to have a "Projects" library which can reside in the cloud so that I can work on my book project on multiple machines. I deleted all but 57 photos from the library copy, and it shrunk to 5 GB. Since there's no way 57 photos at 3.5 MB each consume 5 GB, there has to be some extra stuff hiding in the library. Any idea how to really clean up the library and leave only the 57 photos and the project?


Cheers,


Kim Johnsson

iMac (27-inch, Late 2013), OS X Yosemite (10.10)

Posted on Aug 17, 2017 10:42 AM

Reply
5 replies

Aug 17, 2017 4:47 PM in response to johnssonkim

Do you still have the iPhoto Library that was migrated to your Photos library? To free up the space on the hard drive, i.e. create a smaller footprint library you'll need to delete those same photos from the iPhoto Library.


However, copy the new library to another volume, i.e. external HD, and it should break the hard links to the original photos and be smaller as you expected.


Be aware that it's been reported that operating a Photos library from the iCloud Driver is extremely slow and, if you're connected wirelessly to the internet, can cause corruption of the library due to possible momentary dropouts during writing to the library.


A safer solution would be to get a fast USB ThumbDrive formatted OS X Extended with ownership set to be ignored as shown below


User uploaded file


User uploaded file

Aug 27, 2017 9:49 AM in response to Old Toad

Hi!


No, the new library is a copy of another Photos (not iPhoto) library which is also my main library that is synced to all my devices. I tried copying the new library file to an external drive, but its size remained the same.


Also, if I put the new library file in my iCloud drive, it says the file is Ineligible and it does not sync. Its current size is 4.7 Gb, so it should not be technically too large. But it's definitely too large to be on iCloud drive (or any other synced location) from the perspective of "comfortable use".


I wonder; if I open the package structure of the library file, would there be a branch containing useless items that I could delete? Sounds a bit random, but could be worth a try.


Or if I can't free the space, maybe I should just create an empty library, import the 57 photos into it, and just recreate the project.


Cheers,


Kim

Aug 27, 2017 10:01 AM in response to johnssonkim

I wonder; if I open the package structure of the library file, would there be a branch containing useless items that I could delete? Sounds a bit random, but could be worth a try.

No! Trying to delete anything from inside the library package will damage the library.


The iCloud Drive is a syncing feature for having documents available to use on all your devices as long as the devices are signed into the same iCloud account and have iCloud Drive enabled. To sync your Photos library between devices an online you should enable the iCloud Photo Library feature.


Export the unmodified original versions of the 57 photos to a folder on the Desktop. From there try to import into your primary library. If it's successful you can delete the library where the 57 photos were exported from.

Aug 27, 2017 10:35 AM in response to Old Toad

Yes, and I would only dare to try messing with a copy of the library file :-).


I'll try to recap what's going on:


I am using iCloud Drive for syncing files, as well as other similar services. I have also enabled iCloud Photo Library. The goal here is to have a means to work on the same Project (a photo book) on different machines at different times. Since the Project objects are not shared through the iCloud Photo Library mechanism, the library file itself needs to be shared and synced, either on iCloud Drive or some other cloud based service. And it looks like a Photos library can't be synced on file level on iCloud Drive (hence "Ineligible"). But I could use OneDrive, Google Drive, Dropbox or something similar instead.


I have originally created the Project in my System library (therefore its contents sync to my other machines' System libraries), but when I noticed the Projects are not synced, I made a copy of my System library, and from this copy I deleted all but those photos that are included in the project. So now I have a library with just the content I need, including the Project. The only problem currently is that it takes up too much space for it to feasibly exist in a synced location.


So importing these same 57 photos to my primary library will not solve the problem (they are already there, as is the Project in question), as I will still not have access to the Project on multiple machines.


So it still feels like the best solution is to just bite the bullet, create an empty library, import the 57 photos into it and manually recreate the Project. It's a bit of work (80+ pages), but should result in the smallest possible file. I could copy/paste all text portions by having two libraries open simultaneously: the current library would be open on my MBP and the work-in-progress library on my iMac. Copy/paste text over Handoff should do the trick in this case.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I clean up garbage from a Photos library?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.