A photo’s GPS tags can disappear when an export writes a new image file and leaves out the location metadata. A map pin in the photo library can still be visible because the library and the exported file are separate places to store information.
Check the exact JPEG you received or plan to share. Then check the source JPEG with the same tool. That two-file comparison tells you where the coordinate fields are present and gives you a starting point for finding the step where they disappeared.
Compare the Exact JPEGs
Our example uses two files made from the same original landscape illustration. The teaching source, trail-source.jpg, has EXIF latitude and longitude tags. The teaching export, trail-export.jpg, was written from the same image without attaching those tags. We verified that both files decode to identical pixels.
Download the source JPEG with GPS tags
Download the exported teaching JPEG
This comparison isolates a single difference. Both files are JPEGs, so a change of file format is unnecessary for the GPS metadata to disappear. Real exports can change dimensions, quality, orientation handling and metadata together.
Keep the source and output under separate names. In a review, record the actual source path, the app and version, the export setting if known, and the name of the file you inspected. When several image copies are involved, a SHA-256 hash check can help distinguish files that look identical.
Read Four GPS Fields With ExifTool
Run this read-only command on both JPEGs. Replace the names with the paths to your files if they differ.
exiftool -G1 -a -s -n -GPS:GPSLatitude -GPS:GPSLatitudeRef -GPS:GPSLongitude -GPS:GPSLongitudeRef trail-source.jpg trail-export.jpg-G1 shows the metadata group, -a permits duplicate tag names, -s uses the short names, and -n returns values without ExifTool’s usual display conversion. The GPS: prefix selects the embedded EXIF GPS group. Start with the ExifTool image metadata walkthrough if you need help opening a terminal and supplying the paths.
Scroll horizontally if needed to see the full table.
In this EXIF output, the direction fields matter. The longitude number is positive and its reference is west. Expressed as signed decimal degrees, the longitude is −122.25°. Read the coordinate and its reference together before comparing locations.
ExifTool prints a heading for each file in a multi-file run. Under the export’s heading, there are no lines for the requested fields. This output means those fields were absent from the EXIF GPS group that ExifTool inspected. If you see a message saying a file could not be read, resolve that first.
Follow the File Through the Export
Think about the copy you actually tested. It might be the library’s original, a rendered JPEG, an attachment saved from a message, or a download of a web preview. Those are separate stages. A check on the original and a downloaded preview alone leaves the intermediate stages untested.
The simplest way to locate the change is to add one copy at a time to the comparison. Inspect the file immediately after export. Then, if you shared it, save the received copy and run the same command again.
- If the source has coordinates and the local export has none, the difference is present by the export stage.
- If the local export has coordinates and the received copy has none, check how that copy was transferred or downloaded.
- If neither file has coordinates, confirm you have the intended source and check whether the library stores its map location separately.
On a Mac, Photos distinguishes a rendered export from Export Unmodified Original. Apple documents a separate sidecar option for exporting IPTC information with originals. An original export can help you compare the imported file against the rendered copy. Check the actual file afterward to see which fields were written.
If you are comparing an export option, change it once in a small test and give each result a different filename. App versions, formats, and sharing routes can produce different results. Our two JPEGs were written with Pillow, and show the metadata difference directly without depending on the behavior of a particular photo service.
Check Other Places a Location Can Appear
EXIF, XMP, and IPTC are different metadata structures. The four-field command checks a specific part of EXIF. To see other embedded metadata groups in these JPEGs, run a broader read.
exiftool -G1 -a -s -GPS:all -XMP:all -IPTC:all trail-source.jpg trail-export.jpgCheck the group shown beside any coordinate value. The same tag name can appear in more than one group, and those values can differ.
If an export includes an .xmp file beside the image, inspect the sidecar as a separate file. A city name can also survive in a caption even if precise coordinates are absent. Visible landmarks are another source of location clues, independent of the embedded fields.
If you also need to know when the photo was taken, compare the embedded capture fields separately from the dates displayed by the operating system. The photo timestamp comparison in ExifTool walks through that distinction.
For these two files, the finding is straightforward. The source has four embedded EXIF coordinate and direction fields. The export has none of those four fields. For your own comparison, report the same level of detail, including which copy you checked and which metadata groups you read.