diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index d7fa89b2d..8955b3ede 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -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 diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index b3f4b2b8e..2a23cc76d 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -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 diff --git a/docs/reference/TiffTags.rst b/docs/reference/TiffTags.rst index a53788a9f..231051632 100644 --- a/docs/reference/TiffTags.rst +++ b/docs/reference/TiffTags.rst @@ -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.