Skip to content

A simple metadata remover tool for media files. Removes all traceable metadata, resets timestamps, and rechecks the file using ExifTool and FFmpeg. Supports safe mode or in-place overwrite.

License

Notifications You must be signed in to change notification settings

dp1x/metadata-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Metadata Remover

A minimal command-line tool to remove metadata from images, videos, and audio files.

The script can either create cleaned copies of your files in a new directory or overwrite the original files in place.

[WARNING] Use the --overwrite flag with extreme caution. This option permanently modifies your original files. It is highly recommended to back up your files before using this feature, as the process is irreversible and could result in data loss if an error occurs.

Features

  • Overwrite Option: Choose between the default safe mode (copying to a new directory) or the high-risk overwrite mode.
  • Verification: Automatically uses ExifTool to verify that metadata has been successfully stripped.
  • Timestamp Reset: Resets file timestamps to the Unix epoch (1970-01-01)
  • Recursive Processing: Can process files in a single directory or recursively through a folder.

Requirements

You must have the following command-line tools installed and accessible in your system's PATH:

Usage

Safe Mode (Recommended)

This is the default and recommended way to use the script. It creates cleaned copies of your files in a specified output directory, leaving the original files untouched.

Process a single file:

python main.py --input /path/to/your/file.jpg --output /path/to/cleaned_files

Process an entire folder recursively:

python main.py --input /path/to/your/folder --output /path/to/cleaned_files

Overwrite Mode (Use with Caution)

This mode modifies the original files. It is faster and uses less disk space but carries the risk of data loss.

Overwrite a single file:

python main.py --input /path/to/your/file.jpg --overwrite

Overwrite an entire folder recursively:

python main.py --input /path/to/your/folder --overwrite

Command-Line Arguments

Argument Alias Required Description
--input -i Yes The path to the input file or folder you want to process.
--output -o Yes* The path to the directory where cleaned files will be saved.
--overwrite Yes* Confirms that you want to overwrite the original files.

* You must use either --output or --overwrite, but not both.

About

A simple metadata remover tool for media files. Removes all traceable metadata, resets timestamps, and rechecks the file using ExifTool and FFmpeg. Supports safe mode or in-place overwrite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages