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 2d8658b
Show file tree
Hide file tree
Showing 3 changed files with 22 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

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

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
10 changes: 10 additions & 0 deletions docs/releasenotes/8.2.0.rst
Expand Up @@ -10,6 +10,16 @@ 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
^^^^^^^^^^

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

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

API Changes
===========

Expand Down

0 comments on commit 2d8658b

Please sign in to comment.