Merge pull request #4840 from essarrjay/patch-1

Image.thumbnail docstring: added missing filters
This commit is contained in:
Andrew Murray 2020-09-12 11:03:56 +10:00 committed by GitHub
commit 2e029d9a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2273,8 +2273,9 @@ 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`.
of :py:data:`PIL.Image.NEAREST`, :py:data:`PIL.Image.BOX`,
:py:data:`PIL.Image.BILINEAR`, :py:data:`PIL.Image.HAMMING`,
:py:data:`PIL.Image.BICUBIC` 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`.