Skip to content

Commit

Permalink
Merge pull request #4840 from essarrjay/patch-1
Browse files Browse the repository at this point in the history
Image.thumbnail docstring: added missing filters
  • Loading branch information
radarhere authored Sep 12, 2020
2 parents 7e06a91 + f9f492b commit 2e029d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2273,8 +2273,9 @@ def thumbnail(self, size, resample=BICUBIC, reducing_gap=2.0):
: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`.
Expand Down

0 comments on commit 2e029d9

Please sign in to comment.