Merge pull request #60 from radarhere/box-in-thumbnail

Updated wording
This commit is contained in:
Alexander Karpinsky 2019-12-25 15:21:24 +03:00 committed by GitHub
commit d991cd9a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,14 +61,14 @@ See :ref:`concept-filters` to learn the difference. In short,
Image.draft() return value Image.draft() return value
^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
The ``Image.draft()`` method used to return ``None`` or the image itself. If the :py:meth:`~PIL.Image.Image.draft` method has no effect, it returns ``None``.
Unlike other `chain methods`_, ``draft()`` modifies the image in-place If it does have an effect, then it previously returned the image itself.
rather than returning a modified version. However, unlike other `chain methods`_, :py:meth:`~PIL.Image.Image.draft` does not
return a modified version of the image, but modifies it in-place. So instead, if
In the new version, ``draft()`` returns ``None`` if it has no effect or :py:meth:`~PIL.Image.Image.draft` has an effect, Pillow will now return a tuple
a tuple of new image mode and the box of original coordinates in the of the image mode and a co-ordinate box. The box is the original coordinates in the
bounds of resulting image otherwise bounds of resulting image. This may be useful in a subsequent
(the box could be useful in subsequent ``resize()`` call). :py:meth:`~PIL.Image.Image.resize` call.
.. _chain methods: https://en.wikipedia.org/wiki/Method_chaining .. _chain methods: https://en.wikipedia.org/wiki/Method_chaining