From 4283683948213e3796f99f9051fff470b595ad1e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 3 Aug 2019 23:24:28 +1000 Subject: [PATCH] Corrected note syntax [ci skip] --- docs/reference/ImageStat.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/reference/ImageStat.rst b/docs/reference/ImageStat.rst index d79006190..32f5917c1 100644 --- a/docs/reference/ImageStat.rst +++ b/docs/reference/ImageStat.rst @@ -20,8 +20,10 @@ for a region of an image. Min/max values for each band in the image. - .. Note:: This relies on the :py:meth:`~PIL.Image.histogram` method, - and simply returns the low and high bins used. This is correct for + .. note:: + + This relies on the :py:meth:`~PIL.Image.histogram` method, and + simply returns the low and high bins used. This is correct for images with 8 bits per channel, but fails for other modes such as ``I`` or ``F``. Instead, use :py:meth:`~PIL.Image.getextrema` to return per-band extrema for the image. This is more correct and