Skip to content

Commit 0fb69fa

Browse files
committed
Added release notes for #7123
1 parent b7f1af7 commit 0fb69fa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/releasenotes/10.0.0.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,13 @@ An optional line ``width`` parameter has been added to
149149
API Additions
150150
=============
151151

152-
TODO
153-
^^^^
152+
Added ``alpha_only`` argument to ``getbbox()``
153+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154154

155-
TODO
155+
:py:meth:`~PIL.Image.Image.getbbox` now accepts a keyword argument of
156+
``alpha_only``. This is an optional flag, defaulting to ``True``. If ``True``
157+
and the image has an alpha channel, trim transparent pixels. Otherwise, trim
158+
pixels when all channels are zero.
156159

157160
Security
158161
========

0 commit comments

Comments
 (0)