Added docs for previously-undocumented ExifTags module.

This commit is contained in:
Michael Nagy 2014-07-12 10:44:27 -05:00
parent ee29b0812b
commit 0b278f3376
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
.. py:module:: PIL.ExifTags
.. py:currentmodule:: PIL.ExifTags
:py:mod:`ExifTags` Module
==========================
The :py:mod:`ExifTags` module exposes two dictionaries which
provide constants and clear-text names for various well-known EXIF tags.
.. py:class:: PIL.ExifTags.TAGS
The TAG dictionary maps 16-bit integer EXIF tag enumerations to
descriptive string names. For instance:
>>> from PIL.ExifTags import TAGS
>>> TAGS[0x010e]
'ImageDescription'
.. py:class:: PIL.ExifTags.GPSTAGS
The GPSTAGS dictionary maps 8-bit integer EXIF gps enumerations to
descriptive string names. For instance:
>>> from PIL.ExifTags import GPSTAGS
>>> GPSTAGS[20]
'GPSDestLatitude'

View File

@ -4,6 +4,7 @@ Reference
.. toctree::
:maxdepth: 2
ExifTags
Image
ImageChops
ImageColor