Skip to content

Commit afae568

Browse files
committed
Added release notes for python-pillow#7599 and python-pillow#7593
1 parent b4f0133 commit afae568

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/releasenotes/10.2.0.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,11 @@ Support has been added to read the BC4U format of DDS images.
5454

5555
Support has also been added to read DX10 BC1 and BC4, whether UNORM or
5656
TYPELESS.
57+
58+
Optimized ImageStat.Stat count and extrema
59+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60+
61+
Calculating the :py:attr:`~PIL.ImageStat.Stat.count` and
62+
:py:attr:`~PIL.ImageStat.Stat.extrema` statistics is now faster. After the
63+
histogram is created in ``st = ImageStat.Stat(im)``, ``st.count`` is 3x as fast
64+
on average and ``st.extrema`` is 12x as fast on average.

0 commit comments

Comments
 (0)