Tip: How to find master/original photos in the Photos Library
I recently came across an issue where Photos would not upload one of my original images to iCloud. No other information is provided... Is the image corrupt? Are my permissions wrong? Nothing. It just failed on this one image. Navigating to the Unable to Upload album I could see the image, but I could not export it, either as it appeared in the library or in its original form. I wanted to find the file for this image so I could examine the TIFF image and perhaps determine what was wrong. Unfortunately, Photos no longer had the ability to show original (formerly "master") files in the Finder.
However, I did find a way to do it!
Open a Terminal window
Drag the photo from Photos to the open terminal window
Terminal will display the path to the derivative version of image in the Photos Library. This will likely look something like this (showing only a portion of the path):
.../Photos.photoslibrary/originals/2/2FCA1678-17CB-4161-B716-437716E4428F.tiff
And there you go!
You can now show the package contents of the Photos Library, follow the path, and navigate directly to the photo you're looking for.
Ah! However, this doesn't entirely work for a photo that Photos is unable to upload. Instead of the path you see above, terminal will show this (again, partial path):
.../Photos.photoslibrary/resources/derivatives/2/2FCA1678-17CB-4161-B716-437716E4428F_1_105_c.jpeg
The derivatives folder is where Photos keeps smaller versions of your images so that navigating through the Photos UI will be faster without having to load in photos at their full resolution. Note that file name is the same as that stored in the originals folder, with "_1_105_c" appended to the end, and this photo being a jpeg instead of a tiff.
In my case, dragging the photo from the Unable To Upload album resulted in the smaller jpeg file, and a quick check of the originals folder showed that the full size image was missing. This made it a really easy job to locate a backup of file in Time Machine using the Finder, delete the damage file from Photos, and reimport the original photo from my backup.
Perhaps one of those "don't try this at home and always operate on a backup" things, but at least I now know how to do it.
iMac 27″, macOS 10.14