fix TiffTags and Exif related references

This commit is contained in:
nulano 2020-07-10 00:47:30 +02:00 committed by Andrew Murray
parent 885ca9bb03
commit 39b5d7b4ac
3 changed files with 12 additions and 3 deletions

View File

@ -774,7 +774,7 @@ The :py:meth:`~PIL.Image.open` method sets the following
The :py:attr:`~PIL.Image.Image.tag_v2` attribute contains a dictionary
of TIFF metadata. The keys are numerical indexes from
:py:attr:`~PIL.TiffTags.TAGS_V2`. Values are strings or numbers for single
:py:data:`.TiffTags.TAGS_V2`. Values are strings or numbers for single
items, multiple values are returned in a tuple of values. Rational
numbers are returned as a :py:class:`~PIL.TiffImagePlugin.IFDRational`
object.
@ -827,7 +827,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum
object and setting the type in
:py:attr:`~PIL.TiffImagePlugin.ImageFileDirectory_v2.tagtype` with
the appropriate numerical value from
``TiffTags.TYPES``.
:py:data:`.TiffTags.TYPES`.
.. versionadded:: 2.3.0
@ -844,7 +844,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum
Previous versions only supported some tags when writing using
libtiff. The supported list is found in
:py:attr:`~PIL:TiffTags.LIBTIFF_CORE`.
:py:data:`.TiffTags.LIBTIFF_CORE`.
.. versionadded:: 6.1.0

View File

@ -333,6 +333,10 @@ Instances of the :py:class:`Image` class have the following attributes:
Classes
-------
.. autoclass:: PIL.Image.Exif
:members:
:undoc-members:
:show-inheritance:
.. autoclass:: PIL.Image.ImagePointHandler
.. autoclass:: PIL.Image.ImageTransformHandler

View File

@ -60,3 +60,8 @@ metadata tag numbers, names, and type information.
The ``TYPES`` dictionary maps the TIFF type short integer to a
human readable type name.
.. py:data:: PIL.TiffTags.LIBTIFF_CORE
:type: list
A list of supported tag ids when writing using libtiff.