Skip to content

Commit

Permalink
Deprecated categories [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 22, 2021
1 parent aa35f6b commit b6d6280
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 12 additions & 0 deletions docs/deprecations.rst
Expand Up @@ -33,6 +33,18 @@ Tk/Tcl 8.4
Support for Tk/Tcl 8.4 is deprecated and will be removed in Pillow 10.0.0 (2023-01-02),
when Tk/Tcl 8.5 will be the minimum supported.

Categories
~~~~~~~~~~

.. deprecated:: 8.2.0

``Image.category`` is deprecated and will be removed in Pillow 10.0.0 (2023-01-02),
along with the related :py:class:`.Image` attributes: ``Image.NORMAL``,
``Image.SEQUENCE`` and ``Image.CONTAINER``.

To determine if an image has multiple frames or not,
``getattr(im, "is_animated", False)`` can be used instead.

Image.show command parameter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
7 changes: 0 additions & 7 deletions docs/reference/Image.rst
Expand Up @@ -502,10 +502,3 @@ Used to specify the quantization method to use for the :meth:`~Image.quantize` m

Check support using :py:func:`PIL.features.check_feature`
with ``feature="libimagequant"``.

.. comment: These are not referenced anywhere?
Categories
^^^^^^^^^^
.. data:: NORMAL
.. data:: SEQUENCE
.. data:: CONTAINER

0 comments on commit b6d6280

Please sign in to comment.