Skip to content

ahmadzaid1/ExifToolAuto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Automating the process of removing metadata from files using ExifTool.

Prerequisites

Before running the script, ensure you have the following installed:

Installation

  1. Clone the Repository.
git clone https://github.com/ahmadzaid1/ExifToolAuto.git
cd ExifToolAuto
  1. Make the script executable.
chmod +x metaDataRemover.py
  1. Run the script:
python3 metaDataRemover.py

This script will start monitoring the Downloads directory for new files and automatically remove their metadata.

Setting Up the Script to Run on Startup-Optional

By default, the script will stop working if the session is closed or the computer is shut down. To ensure the script runs automatically every time you turn on your computer, you can add it as a service to your systemd. Open a terminal and create a new service unit file for your script. For example:

  1. Create a systemd Service Unit File:
sudo nano /etc/systemd/system/metaDataRemover.service
  1. Add Service Configuration:
[Unit]
Description=Metadata Remover Service
After=network.target

[Service]
Type=simple
User=yourusername
ExecStart=/usr/bin/python3 /path/to/metaDataRemover.py
WorkingDirectory=/path/to/Downloads/directory
Restart=on-failure

[Install]
WantedBy=multi-user.target
  1. Save and Close the File

In Nano, press Ctrl+O, then Enter to save the file. Press Ctrl+X to exit Nano.

  1. Reload systemd:
sudo systemctl daemon-reload
  1. Enable the Service to Start on Boot:
sudo systemctl enable metaDataRemover.service
  1. Start the Service:
sudo systemctl status metaDataRemover.service

Original ExifTool Repository

This repository provides scripts to automate the process of removing metadata from files using ExifTool. For more information about ExifTool and its usage, you can refer to the original ExifTool repository.

Log file

The remove_metadata.sh script logs its actions to a file named metadata_removal.log in the Downloads directory. This log file contains information about each file processed by the script.

Notes

  • The script was tested on Debian-based Linux distributions only.
  • The tool only removes files supported by Exiftool.
  • The script has been written to monitor the Downloads directory. If you prefer to monitor a different directory, you can modify the following line in the script:
    DOWNLOADS_DIR = os.path.expanduser("~/Downloads")  # Change this to your desired directory

License

This project is licensed under the The Unlicense - see the LICENSE file for details.

About

A python script for Automating ExifTool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages