I need to open, view, and recover information in the Photos database
I have an old, backed up version of my Photos library that contains about 2 years worth of lost photos, which for some reason disappeared from my iCloud photos account. I can load this Photos library on my Mac and I can view the photos, but when I try to "export" them it gives an error: "Unknown Error (-1)". When I try to edit one of these photos with an external application it fails with the error "The operation couldn’t be completed. (PHPhotosErrorDomain error -1.)"
As far as I understand, and please correct if this is wrong, this error means that the photos library doesn't have the unmodified originals for these photos - only a derivative.
I desperately want to recover these photos. I don't have an older backup that I can recover them from - this is the oldest one I have. I can "view" them in the library, but that's it.
I can open the library package contents and see the "originals" folder and the "derivatives" folder. I'm assuming that the photos appearing in the library actually correspond to .jpeg files in the "derivatives" folders. I want to find them - the problem is that there are about 37,000 jpeg files in here. I'm missing about 5,000. None of these files contain date or location stamps - though the dates and locations are visible when I open the old Photos library, so clearly that information isn't lost.
I'm assuming I could go through this 37,000 block of files and try to identify ones that correspond to the missing pictures, and then manually edit date and location tags to recover that information - this seems like it would take weeks if not months of work. I'm hoping there's a quicker way. Ideally I'd like to figure out a way to export the derivatives from the Photos library, carrying out the time and location info. Alternatively it would at least shorten the manual recovery if I could somehow see the database information in table format - ideally I'd like to see a table that shows the date each photo was taken, the location and filename of it's "original" within the library package, the location of it's derivative, and maybe the geolocation stamp. Then I could sort to find the ones that are missing - either by giving a rough date range, or identifying ones that don't have an "original" entry.
Can anyone advise of a faster way to accomplish this job? These are pictures of my wife and I when we were newly married, and our first children when they were babies. In short they have immense sentimental value and I'm seriously tempted to put in months of work recovering them manually, regardless, if there is no other way. I'm just really hoping there's a faster way.
MacBook Pro 16″, macOS 13.4