Skip to content

jimmyneutron99/Photo-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📸 Photo‑Cleaner

License: MIT Python 3.8+ GitHub Actions CI

A single‑file command‑line tool that:

  • Strips all EXIF / IPTC / XMP metadata from JPEG, PNG, GIF, TIFF, WebP, etc.
  • Detects and removes any hidden or appended data (e.g. a zip file, encrypted blob, or stray bytes after the official end‑of‑image marker).
  • Re‑encodes the image and overwrites the original file in place.
  • Works on Windows, macOS and Linux (including WSL).

⚠️ The script rewrites your original files.
Keep a backup or run a dry‑run (-n) first.


Table of Contents


Installation

# Clone the repository
git clone https://github.com/jimmyneutron99/photo-cleaner.git
cd photo-cleaner

# (Optional but recommended) create a virtual environment
python -m venv .venv

# Activate it
source .venv/bin/activate   # macOS / Linux
# On Windows use:
# .venv\Scripts\activate

# Install the required packages
pip install -r requirements.txt


Running the tool

# Interactive mode – you will be prompted for a folder
python cleanphotos.py

# Or pass the folder path directly
python cleanphotos.py "/path/to/your/photos"

# Show the help / CLI options
python cleanphotos.py -h


CLI Options

-r, --recursive	Walk sub‑folders recursively (default: on).
-n, --dry-run	Show what would be cleaned without touching any files.
-v, --verbose	Print a line for every processed file.
-h, --help	Show the help message.

About

A tiny Python CLI that removes all metadata and any hidden/trailing data from image files, overwriting the originals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages