Read and write image metadata, including EXIF, IPTC, XMP, ICC Profile.
Maintained. Last release 2 weeks ago, commits in 6 of the last 26 weeks. Weaker on release cadence and contributor spread.
$
pip install pyexiv2pyexiv2
A Python library for reading and writing image metadata, including EXIF, IPTC, XMP, ICC Profile.
- Install:
pip install pyexiv2 - Source code on GitHub
- Tutorial | 中文教程
Features
- Based on C++ API of Exiv2 and wrapped with pybind11.
- Supports running on 64bit Linux, MacOS and Windows, with CPython(≥3.8) interpreter.
- Supports various image metadata
- Supports various image formats
- Supports opening images based on the file path or from bytes data.
- Supports Unicode characters that contained in image path or metadata.
Defects
- Can't read the image larger than 2GB, or modify the image larger than 1GB. (related issue)
- Not thread safe, because pyexiv2 uses some global variables in C++.
Tests
There are some test cases in folder pyexiv2/tests.