Open elsni opened 1 year ago
Huh. I suspect the fix for this is to prompt the user for the exiftool path and to save that as a default setting.
My work machine is an M1 and I know the homebrew install location changed. This required setting up a symlink. I wonder if something like that could help here. gps2photos is looking to see if exiftool is in the path, but homebrew's install location is not a default location (so we usually add the path to our command environment, but this path doesn't carry over to programmatic shell sessions).
On my Intel, exiftool is located here:
/usr/local/bin/exiftool
You might check where homebrew put exiftool on the M1 by doing:
whereis exiftool
I wonder if it might be here: /opt/homebrew/bin/
If so, you might be able to do:
ln -s /opt/homebrew/bin/exiftool /usr/local/bin/exiftool
Then restart gps2photo and see if it picks up exiftool...
Also having gps2photos saying exiftool not found but I installed from the exiftool.org and it works via terminal and is in my /usr/local/bin/ on M1. It does have the check mark in the check list though but when I run geotag it hangs on Finding QR Code. I am using a generic GPX file, not from the gp4camera.
Also tried rebooting and restarting gps2photos
@MatRanc : If you're not using gps4camera and not generating the QR code, gps4photo isn't going to be useful for you. You might be better served using exiftool from the command line (geotagging with ExifTool: https://exiftool.org/geotag.html).
gps4photo is looking for the QR code photo so it can sync the time from the camera with the time from the phone and GPS tracks. Using the time difference to reference the GPS coordinates, I've found the results to be a bit more accurate.
You can create a file and name it, say /etc/paths.d/sh.brew.homebrew (the actual name doesn't matter as much as the path). Within that file, add the line
/opt/homebrew/bin
and save the file. That will add the Apple Silicon path for homebrew to the system paths and gps2photos will pick it up.
However, that's not really the best solution since it affects the entire system. The best solution would be for gps2photos to actually search for the tool in several locations and not just leave it up to the vagaries of finding it inside the path. That would be an easy change to make and if it would be welcomed, I would be happy to come up with a PR for that.
A PR would be most welcome and thank you!
I do not yet have an Apple Silicon machine so I've not yet run into this. But a fix would be great!
Installed exiftool on M1 mac via homebrew, because MacOS Ventura refuses to installed downloaded exiftool dmg. Even after relogin, gps2photos does not recognize exiftool, but I can access it from commend line.