Image-Meta-Data-Eraser is a tool designed to remove metadata from image files. The tool can be used in two different ways: as a Python script that can be executed in your IDE, or as a standalone executable (.exe
) file that you can run directly in a folder containing your images.
- Clean Metadata: Removes all EXIF metadata from
.jpg
,.jpeg
, and.png
files. - Two Usage Methods:
- Python Script: Run the code directly in your Python environment.
- Executable: Use the standalone
.exe
file to clean metadata from images in a specific folder.
- Clone the repository or download the script.
- Install the required libraries:
pip install pillow piexif
- Place your images in the same directory as the script.
- Run the script using your Python IDE or command line:
python images_metadata_cleaner.py
- The script will process all the images in the folder, removing any metadata.
- Place the executable (images_metadata_cleaner.exe) in the folder containing your images.
- Double-click the executable to run it.
- The tool will automatically clean the metadata from all .jpg, .jpeg, and .png files in the folder.
- A command prompt window will display messages indicating the progress. Press Enter to close the window when the process is complete.
- Python 3.6+ (if using the Python script):
- Pillow and piexif Python libraries:
Installation To install the required Python libraries, run:
```bash
pip install pillow piexif
To create a standalone executable version of the tool, follow these steps:
-
Open Command Prompt (CMD):
- Press
Win + R
, typecmd
, and hitEnter
.
- Press
-
Navigate to the Folder Containing the Code:
- Use the
cd
command to change to the directory where your code is located:Replacecd %Full_Path%\Image-Metadata-Eraser
%Full_Path%
with the actual path to theImage-Metadata-Eraser
folder.
- Use the
-
Install PyInstaller:
- If you haven't installed
PyInstaller
yet, run the following command:pip install pyinstaller
- If you haven't installed
-
Build the Executable:
- To create the standalone executable, run the following command:
pyinstaller --onefile Metadata-Eraser.py
- This process takes about a minute. Once completed, you'll find the executable in the
dist
folder.
- To create the standalone executable, run the following command:
-
Locate the Executable:
- Navigate to the
dist
folder, where you'll see theMetadata-Eraser.exe
file.
- Navigate to the
-
Use the Executable:
- Copy the
Metadata-Eraser.exe
file into the folder containing the images you want to clean. - Double-click the
.exe
file to run it. The tool will automatically remove the metadata from all the images in that folder.
- Copy the
-
Verify Metadata Removal:
- After the process completes, check the images to confirm that their metadata has been successfully removed.