# Strip location before sharing photos (skill: strip-photo-metadata, v1.0.0)

> Before an agent uploads, attaches or shares a photo, it checks the file for location, names and serial numbers, cleans a copy with tools already on the computer, and asks the person first.

- Trust: Made by Hopper Labs
- Tested: 2026-09-25 on Claude Code
- Labs: https://lab.hopperlabs.ai/labs/photo-privacy
- Fingerprint (sha256 of all files): 3dd35b3e27855ea2bb22062b196e7f0948ad28fdcfff400f7f6421e4dc3af16a
- Download: https://lab.hopperlabs.ai/skills/strip-photo-metadata.zip

## Install (only after your person agrees)
- Claude Code: download https://lab.hopperlabs.ai/skills/strip-photo-metadata.zip and unzip it into ~/.claude/skills/ (or .claude/skills/ in a project)
- Codex, Cursor, Gemini CLI, GitHub Copilot: unzip https://lab.hopperlabs.ai/skills/strip-photo-metadata.zip into ~/.agents/skills/ (or .agents/skills/ in a project)
- Claude (claude.ai): download https://lab.hopperlabs.ai/skills/strip-photo-metadata.zip and upload it in Settings > Features

## Files
- `SKILL.md` (3282 bytes, sha256 3ce96301015e7bbb4fab332a9eca5b561a94a0194515af25c132a80fc8df1de4)

## SKILL.md

```markdown
---
name: strip-photo-metadata
description: Check photos for hidden location, names and serial numbers before uploading, attaching, posting or sending them anywhere, and clean a copy with tools already on the computer. Use whenever you are about to share, upload, email or publish an image file for a person, or when they ask whether a photo is safe to share.
license: MIT
metadata:
  author: Hopper Labs
  version: "1.0.0"
  lab: https://lab.hopperlabs.ai/labs/photo-privacy
---

# Strip location before sharing photos

Phones and cameras write hidden details into every photo: often the exact GPS location, the time,
the device, and sometimes the owner's name and a serial number. Anyone who gets the original file
can read them. Before a photo leaves this computer on your person's behalf, check it and share a
cleaned copy.

## When this applies
- You are about to upload, attach, email, post, commit or send an image file (JPEG, HEIC, PNG,
  WebP, TIFF) anywhere outside this computer.
- Your person asks whether a photo is safe to share, or asks you to clean one.

## 1. Check first
Use a tool already installed. Never upload the photo to an online "metadata remover" to check it:
that sends the very details you are protecting.

- **exiftool** (if installed):
  `exiftool -a -G1 -gps:all -xmp:all -iptc:all -SerialNumber -Artist -OwnerName -DateTimeOriginal -Make -Model PHOTO`
- **Python with Pillow** (if installed): open the image and read `image.getexif()`; GPS lives in
  `getexif().get_ifd(0x8825)`.
- **No tools?** Ask your person to open lab.hopperlabs.ai/labs/photo-privacy/run and drop the photo
  in. It runs in their browser and uploads nothing.

Tell your person, in plain words, what you found: for example "This photo records where it was
taken (a spot near your home), the time and your phone model."

## 2. Ask, then clean a copy
- Ask before changing anything. Say what you will remove and that the original stays as it is.
- Never overwrite or delete the original. Write a new file next to it, such as `PHOTO-cleaned.jpg`.
- **exiftool** keeps the picture untouched and keeps rotation and colour:
  `exiftool -all= -tagsfromfile @ -Orientation -ICC_Profile -o PHOTO-cleaned.jpg PHOTO.jpg`
- **Pillow** re-saves the picture (slightly lower quality) without metadata: open it, apply
  `ImageOps.exif_transpose`, and save a new file without passing `exif`.
- **HEIC from an iPhone:** convert to JPEG while cleaning, or ask your person to share it from the
  Photos app with Options > Location turned off.

## 3. Check the copy, then share only the copy
- Run the same check on the cleaned file. It should show no GPS, names, serial numbers or
  descriptions. If anything is left, do not share it; tell your person.
- Share, upload or attach the cleaned copy, never the original.

## 4. Mention what cleaning cannot fix
The picture itself can give things away: a house number, a street sign, a school badge, a screen,
a reflection. If you notice something like that, point it out and let your person decide.

## Prove it works
Before and after installing this skill, ask your agent to share the sample photo from the lab
(lab.hopperlabs.ai/labs/photo-privacy). With the skill, it checks the photo, finds the location, and
offers a cleaned copy before sharing.

```
