Skip to content

Commit

Permalink
Added release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 30, 2023
1 parent e27d7a6 commit 4142fc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/reference/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ This helps to get the bounding box coordinates of the input image::
.. automethod:: PIL.Image.Image.getpalette
.. automethod:: PIL.Image.Image.getpixel
.. automethod:: PIL.Image.Image.getprojection
.. autoproperty:: PIL.Image.Image.has_transparency_data
.. automethod:: PIL.Image.Image.histogram
.. automethod:: PIL.Image.Image.paste
.. automethod:: PIL.Image.Image.point
Expand Down Expand Up @@ -352,6 +351,8 @@ Instances of the :py:class:`Image` class have the following attributes:

.. seealso:: :attr:`~Image.is_animated`, :func:`~Image.seek` and :func:`~Image.tell`

.. autoattribute:: PIL.Image.Image.has_transparency_data

Classes
-------

Expand Down
12 changes: 9 additions & 3 deletions docs/releasenotes/10.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ TODO
API Additions
=============

TODO
^^^^
has_transparency_data
^^^^^^^^^^^^^^^^^^^^^

TODO
Images now have :py:attr:`~PIL.Image.Image.has_transparency_data` to indicate
whether the image has transparency data, whether in the form of an alpha
channel, a palette with an alpha channel, or a "transparency" key in the
:py:attr:`~PIL.Image.Image.info` dictionary.

Even if this attribute is true, the image might still appear solid, if all of
the values shown within are opaque.

Security
========
Expand Down

0 comments on commit 4142fc4

Please sign in to comment.