Trying to recover photos from corrupted photo library

I am trying to recover my photos from a corrupted photo library. I have repaired and restored the library. When the library opens, all the photos show as grey squares. Every time the library is closed and re-opened, it automatically triggers a restore which takes 2 hours to complete before the library opens.


I am trying to dig through the "package contents" of the photos app to hopefully recover my files from there, however, all of the folders that normally contain photos are empty. The size of the library is 378.28GB. When I dig through the package contents, I see that the file located at photoslibrary.photolibrary/resources/journal/ImportSession-change.plj is 371.52GB and seems to be one of the only files large enough to plausibly contain some media.


Does anyone know what a .plj file is or otherwise how to dig photos out of a corrupted library?



This library is very corrupted and here's its history:


  • Created in iPhoto 10+ years ago
  • Got corrupted by dragging/dropping it to an external hard drive then back to a Mac
  • Data recovery software was run on the external hard drive and all the random files were moved into a folder
  • A new Photos library was created using one of the early iterations of the Photos app
  • All the recovered files were imported to this library
  • This library was previously 1.8TB but over the last few weeks, I've been exporting things out in batches and deleting from the library as I go.... It's now down to 378.28GB but everything is showing up as grey squares.



I've been in contact with multiple senior advisors at Apple in the Photos department but none of them seem to have the technical expertise required to entertain this approach of going into "show package contents" and they are all just saying that if the photos app won't display the photos and a repair/restore didn't work then I'm SOL and everything is lost.

MacBook Pro (M3 Max, 2023)

Posted on Jan 6, 2024 11:09 AM

Reply

Similar questions

1 reply

Jan 6, 2024 12:23 PM in response to mckenziepiping

It is not documented by Apple, what the files inside the Library package contain. The media inside should not be accessed this way.

But when I look inside my own libraries, there are no large files named "ImportSession-change.plj". This file is typically just a few hundred KB in size and does not store any images. It just contains database entries, mostly strings and binary data, describing the most recent changes - perhaps necessary for the curated layout of images. If this file is huge, it is indicating an incomplete import and crash, perhaps caused by an endless loop and running out of storage.

The high resolution original image and video files should be stored in the folder "originals". If this folder is empty, you have already rescued all media files. There might be some edited versions in the folders "renders" and "derivatives".



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.

Trying to recover photos from corrupted photo library

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