Merge pull request #7243 from radarhere/releasenotes

This commit is contained in:
Hugo van Kemenade 2023-06-30 10:59:47 +03:00 committed by GitHub
commit 7c945f5131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,10 +149,13 @@ An optional line ``width`` parameter has been added to
API Additions
=============
TODO
^^^^
Added ``alpha_only`` argument to ``getbbox()``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TODO
:py:meth:`~PIL.Image.Image.getbbox` now accepts a keyword argument of
``alpha_only``. This is an optional flag, defaulting to ``True``. If ``True``
and the image has an alpha channel, trim transparent pixels. Otherwise, trim
pixels when all channels are zero.
Security
========