🖼️

Remove Geo Tag

Strip GPS location data from photos for privacy before sharing online.

Image ⭐ Beginner ⏱️ 2 minutes

😫 The Pain Point

You took photos at home and want to share them online. But they contain GPS coordinates that reveal your address. You need to remove location data for privacy.

🚀 Agentic Solution

A Privacy Scrubber that removes GPS and other sensitive EXIF data.

Key Features:

  • GPS Removal: Target location data specifically.
  • Full Scrub Option: Remove all EXIF data.
  • Batch Processing: Process entire folders.

⚔️ Phase 1: Commander (Quick Fix)

For quick scrubbing.

Prompt:

“I have a folder personal_photos with images containing GPS data. Write a Python script using piexif to:

  1. Remove: GPS EXIF tags only.
  2. Preserve: Other metadata (date, camera).
  3. Output: Overwrite originals OR save to safe_photos/.
  4. Backup Option: Keep originals if --backup flag.

Print count of photos processed and GPS tags removed.”

Result: Privacy-safe photos for sharing.

🏗️ Phase 2: Architect (Permanent Tool)

For Privacy-Conscious Users.

Engineering Prompt:

**Role:** Python GUI Developer (PyQt6 Specialist)
**Task:** Create "Privacy Scrubber" Desktop App

**Objective:** A desktop utility to strip sensitive GPS and metadata from photos before sharing.

**Tech Stack:**
* Language: Python 3.10+
* GUI Library: PyQt6 (Cross-platform)
* Metadata: piexif, Pillow
* Packaging: PyInstaller

**Functional Requirements:**
1.  **UI Layout (PyQt6):**
    *   **Scan:** Select Input Folder.
    *   **Filters:** Checkboxes for "GPS Data", "Camera Info", "Date Taken", "All EXIF".
    *   **Safety:** "Backup Originals" Checkbox (Default Checked).
    *   **Report:** List of files found with coordinate data.

2.  **Core Logic:**
    *   Read EXIF and recursively remove targeted tags.
    *   Overwrite or Save Copy based on user choice.
    *   **Threading:** Safe file I/O operations in background thread.

3.  **Deliverables:**
    *   `main.py`: Complete source code.
    *   `requirements.txt`: Dependencies.
    *   **Build Instructions:**
        *   Windows: `pyinstaller --onefile --noconsole main.py`
        *   macOS: `pyinstaller --windowed --noconsole main.py`

🧠 Prompt Decoding

  • GPS EXIF Tags: Stored in the GPSInfo section of EXIF data.

🛠️ Instructions

  1. Install: pip install piexif
  2. Copy Prompt → Run (use backup first time!).

Related Workflows

Explore other categories

📬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

📖 Free eBook Guide 📦 7 Ready-to-use Scripts 🔔 Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.