Programmatically scrub certain XMP metadata from Photos?
0
votes
1
answer
66
views
Information in my photos library seems to prevent Photos.app from effective facial recognition. Part of the reason is Photos.app's ancestor had features that did not age well---like manually selecting faces and naming them. I have a new M4 Mac Mini and want to give it a fair shot at leaving behind past sins. Exporting the photos library, migrating it over, and resetting people and pets are suggestions that do not solve the problem for me.
My question solicits feedback about what seems like a good solution. Here it is:
1. Select all photos and videos in my library and export the original, unmodified files with XMP sidecar files into a single folder.
2. Programmatically remove suspect XMP tags, like
Person1
in a script.
3. Open or import all the photos and videos in Photos.app on the new machine.
Photos.app will incorporate information from the XMP files when constructing a new database, right?
The issue is that some user-supplied information, like geographic location, does age well, even if it isn't "baked into" the exif metadata, so I would like to retain that information and remove only certain tags. Consider an XMP file exported along with an unmodified .heif file:
53.243431091308594
W
N
0
0.0
17.57313346862793
2010-01-04T23:41:39Z
0.0
2010-01-04T16:41:39-07:00
Person Name 1
Person Name 2
Person Name 3
2024-05-30T18:07:47-06:00
I would need to remove the block:
Person Name 1
Person Name 2
Person Name 3
And any other desired tags. Is this OK, and then import all these photo and video files into Photos.app on the new machine and let it get to work? Or perhaps even add new tags to search for "scrubbed" files once in Photos.app?
Maybe this workflow is what PowerPhotos and GraphicConverter also do?
Asked by grad student
(211 rep)
Mar 19, 2025, 10:36 PM
Last activity: Mar 20, 2025, 01:00 AM
Last activity: Mar 20, 2025, 01:00 AM