mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-16 02:04:45 +03:00
Add include inverse mappings to ExifTags docs.
This commit is contained in:
parent
6d9d4af192
commit
ce905dea74
|
@ -4,25 +4,45 @@
|
||||||
:py:mod:`~PIL.ExifTags` Module
|
:py:mod:`~PIL.ExifTags` Module
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
The :py:mod:`~PIL.ExifTags` module exposes two dictionaries which
|
The :py:mod:`~PIL.ExifTags` module exposes four dictionaries which
|
||||||
provide constants and clear-text names for various well-known EXIF tags.
|
provide constants and clear-text names for various well-known EXIF tags.
|
||||||
|
|
||||||
.. py:data:: TAGS
|
.. py:data:: TAGS
|
||||||
:type: dict
|
:type: dict
|
||||||
|
|
||||||
The TAG dictionary maps 16-bit integer EXIF tag enumerations to
|
The TAGS dictionary maps 16-bit integer EXIF tag enumerations to
|
||||||
descriptive string names. For instance:
|
descriptive string names. For instance:
|
||||||
|
|
||||||
>>> from PIL.ExifTags import TAGS
|
>>> from PIL.ExifTags import TAGS
|
||||||
>>> TAGS[0x010e]
|
>>> TAGS[0x010e]
|
||||||
'ImageDescription'
|
'ImageDescription'
|
||||||
|
|
||||||
|
.. py:data:: TAG_CODES
|
||||||
|
:type: dict
|
||||||
|
|
||||||
|
The TAG_CODES dictionary maps descriptive string names to 16-bit integer EXIF
|
||||||
|
tag enumerations. For instance:
|
||||||
|
|
||||||
|
>>> from PIL.ExifTags import TAG_CODES
|
||||||
|
>>> TAG_CODES['ImageDescription']
|
||||||
|
0x010e
|
||||||
|
|
||||||
.. py:data:: GPSTAGS
|
.. py:data:: GPSTAGS
|
||||||
:type: dict
|
:type: dict
|
||||||
|
|
||||||
The GPSTAGS dictionary maps 8-bit integer EXIF gps enumerations to
|
The GPSTAGS dictionary maps 8-bit integer EXIF gps enumerations to
|
||||||
descriptive string names. For instance:
|
descriptive string names. For instance:
|
||||||
|
|
||||||
>>> from PIL.ExifTags import GPSTAGS
|
>>> from PIL.ExifTags import GPSTAGS
|
||||||
>>> GPSTAGS[20]
|
>>> GPSTAGS[20]
|
||||||
'GPSDestLatitude'
|
'GPSDestLatitude'
|
||||||
|
|
||||||
|
.. py:data:: GPS_CODES
|
||||||
|
:type: dict
|
||||||
|
|
||||||
|
The GPS_CODES dictionary maps descriptive string names to 8-bit integer EXIF
|
||||||
|
gps enumerations. For instance:
|
||||||
|
|
||||||
|
>>> from PIL.ExifTags import GPSTAGS
|
||||||
|
>>> GPS_CODES['GPSDestLatitude']
|
||||||
|
20
|
||||||
|
|
Loading…
Reference in New Issue
Block a user