Image.thumbnail docstring: added Image.BOX filter

[ci skip] updated docstring of Image.thumbnail to include Image.BOX filter as a resampling option.
This commit is contained in:
essarrjay 2020-08-05 11:18:18 -07:00 committed by GitHub
parent 0ccb28088f
commit 9cdfb296e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2273,7 +2273,7 @@ class Image:
:param size: Requested size.
:param resample: Optional resampling filter. This can be one
of :py:data:`PIL.Image.NEAREST`, :py:data:`PIL.Image.BILINEAR`,
:py:data:`PIL.Image.BICUBIC`, or :py:data:`PIL.Image.LANCZOS`.
:py:data:`PIL.Image.BICUBIC`, :py:data:`PIL.Image.BOX`, or :py:data:`PIL.Image.LANCZOS`.
If omitted, it defaults to :py:data:`PIL.Image.BICUBIC`.
(was :py:data:`PIL.Image.NEAREST` prior to version 2.5.0).
See: :ref:`concept-filters`.