Q: View file names under images?
In iPhoto, the titles of all imported images were set to the file names and it was therefore possible to have the file names displayed under every image.
In Photos, titles can be viewed by selecting View > Metadata > Titles, but all titles are empty on newly imported images. There seems to be an option to view the file name as a separate field, by selecting View > Metadata > Referenced file. However, this option does nothing. But when I search for a file name, the correct images show up, so Photos obviously keeps track of the file names somehow.
So, how can I view the file names under every image, or import the file names into the titles?
Posted on Apr 8, 2015 4:35 PM
According to an Apple support article, https://support.apple.com/en-us/HT204478 , only user-defined titles are migrated. That information seems to be correct, since the very few titles that were migrated for me, were ones I had set in iPhoto instead of by naming the files. I tried to find any sort of "user-defined title" attribute in the iPhoto database, but without any luck.
I solved my problem by writing a Python script that goes through the databases of the old and new libraries and tries to find matching UUIDs. Where it does, it copies over the image title from the old to the new. Unfortunately, many UUIDs are changed in the migration, so for me it only found matches for 37 % of the images. Therefore, I added a function to the script that sets all remaining titles in the new library based on file names. All file extensions are excluded and titles are only created if current titles are empty. The script also lets you run only one of the two functions if you want.
The script makes a backup of both databases before running. I have tested it but not thoroughly, so if anyone wants else to use it, proceed with caution.
Posted on May 19, 2015 2:47 PM