A Python library to read and modify image EXIF metadata with a simple, intuitive API. Current version 1.6.1 requires Python >=3.7. Releases are infrequent, but the library is stable and widely used.
pip install exifVerified import paths — ran on the pinned version, not inferred.
Open a JPEG file, read EXIF tags, and print common attributes.
Use hasattr() or the tag's 'get' method (e.g., img.get('make', 'Unknown')).Always use open('image.jpg', 'rb') when reading images with exif.Open with 'rb+', modify tags, then call img.write() before closing.
Use getattr(img, 'make', 'Unknown') or the .get() method: img.get('make').Open the file with open('image.jpg', 'rb') (binary read mode).Open with 'rb+' (read and write binary) and ensure the file is not closed before calling img.write().
No dependency data recorded yet.