Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MalagLagoon

macrumors regular
Original poster
Dec 19, 2019
157
56
I'm running macOS Monterey. Is there a way to extract GPS coordinates from photos on macOS's Photos?
 

MalagLagoon

macrumors regular
Original poster
Dec 19, 2019
157
56
I'm using Apple Photos on my Mac - and wondered if it was possible to get the GPS coordinates straight out of the app itself. I take it the answer is no.
 

hg.wells

macrumors 65816
Apr 1, 2013
1,067
789
It’s not the best way, buts it’s the quickest. In Photo’s right click on the photo, select Edit With and click Preview.

In Preview, click on the I for the inspector in the tool bar, then select GPS to see the latitude and longitude.
 
  • Like
Reactions: MalagLagoon

MalagLagoon

macrumors regular
Original poster
Dec 19, 2019
157
56
It’s not the best way, buts it’s the quickest. In Photo’s right click on the photo, select Edit With and click Preview.

In Preview, click on the I for the inspector in the tool bar, then select GPS to see the latitude and longitude.
Nice little hack! Thanks!
 

organicCPU

macrumors 6502a
Aug 8, 2016
839
296
Maybe MetaImage can give you faster access to GPS info in Photos app.

Personally I'd use ExifTool, if I had to export EXIF GPS tags from image files.
As a starting point after installing ExifTool, try a command like this in Terminal app:
Bash:
exiftool -a -gps:all image.jpg
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
6,310
5,028
Will ditto exiftool, but might be hit and miss. Betting GPS data should be on most/all of the images, but Photos keeps some meta-data in a database, so possible that any GPS data added through Photos might not be on the image(s).

Shortcuts has ability to search for images in Photos library and then can loop through them and extract the GPS data. Basic outline:

gps.png
 
  • Like
Reactions: organicCPU

chown33

Moderator
Staff member
Aug 9, 2009
11,008
8,908
A sea of green
If the GPS data in the images is extracted for Spotlight searching, then that data can be read using the 'mdls' command-line tool. See the man page: man mdls

It's quite simple to get all the Spotlight metadata for a given file. Output it to a text file, then open it and see what the name for the GPS data is. Then use that name to get just that datum for any number of files.
 
  • Like
Reactions: organicCPU
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.