I used to import photos from my DSLR camera (Canon 50D) via Photos Library and then copy them from
~/Pictures/Photos Library.photoslibrary/Masters/directory. They were grouped by year/month/day of import and all files had their original file names eg. IMG_123456.jpeg
Recently I’ve noticed that
Mastersdirectory is missing (probably after update to Catalina). Imported photos seem to be located in
~/Pictures/Photos Library.photoslibrary/originals/directory, however directories structure is illogical and file names are some hash values eg.
Does anyone know why is that? Can the “previous” approach with “Masters” directory be restored? How to retrieve files with their original names from Photos Library?
Is there a reason you want/need to do this via the Finder, exploring the
Photos Library.photoslibrary package database?
If you are going to do that, why not just “import” the files from your SD Card using Finder? Skip importing via Photos entirely.
If you are importing into Photos, I’d suggest you also export via Photos.app rather than exploring its folder structure. Select the photos you want, then select
File > Export. This will export the photos using their original metadata and filenames.
Source : Link , Question Author : Krzysiek , Answer Author : pkamb