A simple Python script to extract various metadata, including EXIF data, from image files.
- Extracts basic image properties (filename, format, mode, size).
- Extracts EXIF data using
Pillow
. - Extracts detailed EXIF data (including GPS information if present) using
piexif
.
-
Clone the repository:
git clone [https://github.com/YOUR_USERNAME/image_metadata_extractor.git](https://github.com/YOUR_USERNAME/image_metadata_extractor.git) cd image_metadata_extractor
-
Create and activate a virtual environment (recommended):
- Linux/macOS:
python3 -m venv venv source venv/bin/activate
- Windows:
py -m venv venv .\venv\Scripts\activate
- Linux/macOS:
-
Install dependencies:
pip install -r requirements.txt
- Place your image file(s) in the project directory, or provide the full path to your image.
- Run the script:
python get_meta.py
- Enter the path to the image file when prompted.