Closed mrgehring closed 6 months ago
I looked at doing something like that in the past. I gave up because at that time I found that Photos didn't notice when I made metadata changes to an image. I made the changes using ExifTool as a proof of concept.
Perhaps things have changed.
You should not change original files imported into photos. However, starting with GeoTag 5.3 you can select and edit images in your Photos Library by clicking on a new "photos" icon in the toolbar. Updated image location data is fed back to Photos when the changes are "saved".
I think you mention adding geotags before importing into Photos, however I already have everything in Photos. I have written a Python app that can access the photos in my Apple photo library ( "Photos Library.photoslibrary" ), and I have had no problem just treating it as any other directory. My code can rotate and delete photos. I also use Exiftool to modify the rotation angle metadata. Perhaps this is dangerous, but I have had no problems doing this for a few years. I'm not sure why your app would not work on files inside the photo library - have you tried it, or do you know why it would not work? I have found a paid app called "HoudahGeo that looks like it can do it, but your app should be all I need.