Skip to content

feat: folder-wide media metadata stripping + auto-detect#5

Open
I7T5 wants to merge 2 commits into
natalie-a-1:mainfrom
I7T5:main
Open

feat: folder-wide media metadata stripping + auto-detect#5
I7T5 wants to merge 2 commits into
natalie-a-1:mainfrom
I7T5:main

Conversation

@I7T5

@I7T5 I7T5 commented Jun 25, 2026

Copy link
Copy Markdown

Hi Natalie! I was trying to find something that will strip all my metadata from the media on my personal website, and I found your extension. Thanks for creating and open-sourcing it! I asked Claude Code to add a bulk strip command in the command palette, as well as an auto-strip option for folders/repos with remote origin. Hope it's running and helpful. Let me know if anything's not working.

The following is from Claude


What & why

Media files (images, GIFs, videos) carry metadata — EXIF GPS, device serials, timestamps, author names — that silently leaks when a repo is pushed to a public remote. This builds on Meta-Scraper's single-file image cleaning to make it a repo-oriented privacy tool.

Changes

  • New command: "Strip Metadata from All Media in Folder" (Command Palette + right-click on a folder). Batch-strips the workspace/folder with a cancellable progress bar, sharing a single ExifTool process and gracefully skipping formats exiftool can't write.
  • Automatic detection of newly added media via a FileSystemWatcher, gated to Git repositories that have a remote origin (the "made public online" case). Behavior is configurable — strip / ask / do nothing.
  • First-run prompt (per workspace) the first time the folder command runs: offers to enable auto-detection and pick its behavior, writing the new settings.
  • New settings: metascraper.autoDetectNewMedia (checkbox) and metascraper.onNewMedia (strip / ask / do nothing).
  • Refactored the exiftool strip core into a shared stripFile() used by the folder, single-file, and watcher paths (in-place via -overwrite_original).
  • Broadened supported media to GIFs, more image formats (.tif/.heic/.heif/.bmp), and MP4/MOV/M4V video.

Verification

  • npm run lint — clean (one pre-existing warning in test-image/example-usage.js, untouched).
  • npm test — passes; logs confirm the extension activates in a real Extension Host.
  • Automated strip proof: injected GPS/camera/author/software/timestamp EXIF into a JPEG, ran the exact stripFile operation, asserted all 11 sensitive tags removed and the image stayed a valid JPEG.

🤖 Generated with Claude Code

I7T5 and others added 2 commits June 25, 2026 16:44
Extend Meta-Scraper from single-file image cleaning into a repo-oriented
privacy tool for media headed to a public remote.

- Add "Strip Metadata from All Media in Folder" command (Command Palette +
  folder right-click): batch-strips the workspace/folder with a cancellable
  progress bar, sharing one ExifTool process and skipping unsupported files.
- Add automatic detection of newly added media via a FileSystemWatcher,
  gated to Git repos that have a remote origin. Behavior configurable:
  strip / ask / do nothing.
- First-run prompt (per workspace) to opt into auto-detection and pick its
  behavior; writes the new settings.
- Add settings: metascraper.autoDetectNewMedia, metascraper.onNewMedia.
- Refactor the exiftool strip core into a shared stripFile() used by the
  folder, single-file, and watcher paths (in-place via -overwrite_original).
- Broaden supported media to GIFs, more image formats, and MP4/MOV/M4V video.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat: folder-wide media metadata stripping + auto-detect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant