Skip to content

Commit d991cd9

Browse files
authored
Merge pull request #60 from radarhere/box-in-thumbnail
Updated wording
2 parents c35fb6f + 663fea3 commit d991cd9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/releasenotes/7.0.0.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ See :ref:`concept-filters` to learn the difference. In short,
6161
Image.draft() return value
6262
^^^^^^^^^^^^^^^^^^^^^^^^^^
6363

64-
The ``Image.draft()`` method used to return ``None`` or the image itself.
65-
Unlike other `chain methods`_, ``draft()`` modifies the image in-place
66-
rather than returning a modified version.
67-
68-
In the new version, ``draft()`` returns ``None`` if it has no effect or
69-
a tuple of new image mode and the box of original coordinates in the
70-
bounds of resulting image otherwise
71-
(the box could be useful in subsequent ``resize()`` call).
64+
If the :py:meth:`~PIL.Image.Image.draft` method has no effect, it returns ``None``.
65+
If it does have an effect, then it previously returned the image itself.
66+
However, unlike other `chain methods`_, :py:meth:`~PIL.Image.Image.draft` does not
67+
return a modified version of the image, but modifies it in-place. So instead, if
68+
:py:meth:`~PIL.Image.Image.draft` has an effect, Pillow will now return a tuple
69+
of the image mode and a co-ordinate box. The box is the original coordinates in the
70+
bounds of resulting image. This may be useful in a subsequent
71+
:py:meth:`~PIL.Image.Image.resize` call.
7272

7373
.. _chain methods: https://en.wikipedia.org/wiki/Method_chaining
7474

0 commit comments

Comments
 (0)