The photo that gave away an address

The teachers at a secondary school opened a forum on the virtual classroom so that each student could introduce their pet with a photo.

Lucía posted a photo of her cat asleep on the sofa, taken with her phone that same afternoon. It showed only the cat, a cushion and a white wall.

The next day, a student from another class commented: “Say hi to your neighbours on Almond Street.” It was her street. Lucía had never said where she lived and he had never been to her home, but he claimed he had worked it out in two minutes without getting up from his chair.

How did the student know which street Lucía lived on?

How to solve the cases
Class forum showing a photo of a cat asleep on a sofa and several comments

Hints

Reveal them one at a time, only when you need them.

Solution

The photo carried the GPS coordinates of the place where it was taken. The phone’s camera stored them in the file’s EXIF metadata, the forum did not remove them, and the student only had to look them up on a map.

What happened?

Besides the pixels, cameras and phones store metadata in each photo in EXIF format, a standard from the Japanese camera industry association (CIPA): the date, the model, the shooting settings and, if the camera has location permission, the latitude and longitude, in tags such as GPSLatitude and GPSLongitude. They are not visible in the image, but anyone who has the file can read them with a metadata viewer or with ExifTool. This is what happened:

  1. The camera on Lucía’s phone had location permission and stored the coordinates of her home in the photo.
  2. Lucía uploaded the original file and the forum kept its metadata.
  3. The student downloaded the photo, read the latitude and longitude and looked them up on a map: the pin landed on Almond Street.

How could it be fixed and prevented?

To fix it, Lucía needed to remove the photo and upload it again without the location. On iPhone, open the photo in Photos, tap the more options button and choose Adjust Info > Adjust Location > No Location. On Windows, the Remove Properties and Personal Information option in the file’s properties works, and on any system, the command exiftool -gps:all= photo.jpg.

To stop it from happening again, these measures helped:

  • Take location permission away from the camera. On iPhone, go to Settings > Privacy & Security > Location Services > Camera and choose Never. On Pixel phones, turn off Save location in the camera settings.
  • Share without location. On iPhone, when sharing from Photos, tap Options and turn off Location.
  • Do not assume the platform removes metadata. INCIBE warns that services such as Google Drive, Gmail, iCloud or Dropbox keep it.

Further reading

What data a photo can store, including its location, and how to avoid it on Android, iOS and Windows is explained in ¿Qué información se oculta detrás de una foto? — INCIBE (in Spanish).

To share photos without location or remove it from photos already on your iPhone, see Manage location metadata in Photos — Apple Support.

How to turn off “Save location” in the Pixel camera is explained in Change your Camera app settings — Pixel Camera Help.

The commands to read and remove metadata, such as `-gps:all=`, are in the exiftool Application Documentation — ExifTool.

The Exif standard (CIPA DC-008) is listed in the catalogue of CIPA Standards — Camera & Imaging Products Association.

Have a story worth investigating?

Suggest a case

A project by Eniun

How do you solve the cases?

Each case presents a mystery that seems to defy explanation.

A moderator who knows the solution reads the mystery to the group. The group works out what happened by asking questions, discussing hypotheses and using what they know.

You can project the case on a screen so everyone can read it and refer back to it during the discussion.

The moderator can guide the discussion without giving away the answer. If the group gets stuck, each case offers three graded hints under “Hints”, which can be revealed one at a time.

Once the moderator confirms that the group has found the answer, select “Show answer” to open the solution.

You can also solve the cases on your own: read the story, try to come up with an explanation and use the hints only when you need them.