This Python script recursively removes metadata (including EXIF data) from all PNG files in a specified directory and its subdirectories. It uses multiprocessing to enhance performance and provides a progress bar to track the operation.
- Recursively processes all PNG files in a directory and its subdirectories
- Removes metadata from PNG files
- Uses multiprocessing for improved performance
- Displays a progress bar during execution
- Provides a summary of processed files, errors, and unchanged files
- Skips files that don't have metadata, optimizing processing time
- Python 3.6+
- Pillow
- tqdm
-
Clone this repository: git clone https://github.com/undeadx1/ExifRemover.git cd png-metadata-remover
-
Install the required packages: pip install -r requirements.txt
-
Place the script in the directory containing the PNG files you want to process (or any parent directory).
-
Run the script: python png_metadata_remover.py
-
The script will process all PNG files in the current directory and its subdirectories. A progress bar will show the status of the operation.
-
After completion, a summary will be displayed showing the number of processed files, errors, and unchanged files.
Processing 100 PNG files. Processing: 100%|██████████| 100/100 [00:05<00:00, 18.73it/s]
Task completed:
- Files processed: 75
- Errors occurred: 2
- No changes: 23
Error occurred (path/to/file1.png): [Error message] Error occurred (path/to/file2.png): [Error message]
- This script modifies files in-place. It's recommended to backup your files before running the script.
- While the script is designed to only remove metadata, it's always a good practice to test it on a small set of non-critical files first.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
This project is licensed under the MIT License - see the LICENSE file for details.