ExifTags Module#

The ExifTags module exposes two dictionaries which provide constants and clear-text names for various well-known EXIF tags.

PIL.ExifTags.TAGS: dict#

The TAGS dictionary maps 16-bit integer EXIF tag enumerations to descriptive string names. For instance:

>>> from PIL.ExifTags import TAGS
>>> TAGS[0x010e]
'ImageDescription'
PIL.ExifTags.GPSTAGS: dict#

The GPSTAGS dictionary maps 8-bit integer EXIF GPS enumerations to descriptive string names. For instance:

>>> from PIL.ExifTags import GPSTAGS
>>> GPSTAGS[20]
'GPSDestLatitude'

These values are also exposed as enum.IntEnum classes.

PIL.ExifTags.Base[source]#
>>> from PIL.ExifTags import Base
>>> Base.ImageDescription.value
270
>>> Base(270).name
'ImageDescription'
PIL.ExifTags.GPS[source]#
>>> from PIL.ExifTags import GPS
>>> GPS.GPSDestLatitude.value
20
>>> GPS(20).name
'GPSDestLatitude'