Image Metadata Extractor with batch support. Extracts EXIF, XMP (inline & sidecar), basic IPTC, dimensions, and file hashes. Exports to JSON, JSON Lines, or CSV.
- Folders, globs, and recursion
- Fast parallel scanning (
--jobs) - UTF-8 output; newline =
\n - MIT licensed, no fluff
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[test]"
imagemeta --versionimagemeta "C:\photos" -r --to json -o .\report.jsonimagemeta "C:\photos" -r --ext .jpg --ext .png -o .\report.jsonimagemeta "C:\photos" -r --to csv -o .\report.csvimagemeta "C:\photos" -r --to jsonl -o .\report.ndjsonimagemeta "C:\photos" -r --hash -o .\report.jsonimagemeta "C:\photos" -r --fields path name width height datetime_original exif -o .\lite.jsonimagemeta ".\shots\*.jpg" --to csvFrom the repo root (after unzip), set PYTHONPATH so Python can see src/:
$env:PYTHONPATH = "src"
python -m imagemeta.cli ".\shots\*.jpg" -r --to json -o .\report.json{
"path": "<absolute or relative path>",
"name": "<filename>",
"ext": ".jpg",
"size": 123456,
"mime": "image/jpeg",
"width": 4032,
"height": 3024,
"mode": "RGB",
"hash_md5": "…",
"hash_sha256": "…",
"orientation": "1",
"datetime_original": "2024-01-12T09:44:55",
"exif": { "EXIF DateTimeOriginal": "2024:01:12 09:44:55", "Image Make": "…" },
"exif_pil": { "…": "…" },
"iptc": { "…": "…" },
"xmp_inline": "<x:xmpmeta…>…</x:xmpmeta>",
"xmp_sidecar": "<?xpacket …>…</x:xmpmeta>"
}pip install -e ".[test]"
pytest -qMIT © Wilson Anibe