July 2016
Beginner to intermediate
462 pages
9h 14m
English
Digital photos often contain extra textual metadata, for example, timestamps, exposure information, and geolocations. Some of this metadata is editable by the camera owner. In the context of marketing, for instance, it can be useful to extract the metadata from profile (or other) images on social media websites. Purportedly, whistle blower Edward Snowden claimed that the American NSA is collecting EXIF metadata from global online data.
In this recipe, we will use ExifRead to extract the EXIF metadata.
Install ExifRead as follows:
$ pip install ExifRead
I tested the code with ExifRead 2.1.2.
import exifread import pprint
f = open('covers.jpg', ...