mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-11 08:33:13 +03:00
Updated docstring
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
40eceec70d
commit
91b3a9d6a1
|
@ -241,10 +241,10 @@ def contain(image, size, method=Image.BICUBIC):
|
||||||
Returns a sized version of the image, expanded to fill the requested aspect ratio
|
Returns a sized version of the image, expanded to fill the requested aspect ratio
|
||||||
and size.
|
and size.
|
||||||
|
|
||||||
:param image: The image to size and crop.
|
:param image: The image to resize and crop.
|
||||||
:param size: The requested output size in pixels, given as a
|
:param size: The requested output size in pixels, given as a
|
||||||
(width, height) tuple.
|
(width, height) tuple.
|
||||||
:param method: What resampling method to use. Default is
|
:param method: Resampling method to use. Default is
|
||||||
:py:attr:`PIL.Image.BICUBIC`. See :ref:`concept-filters`.
|
:py:attr:`PIL.Image.BICUBIC`. See :ref:`concept-filters`.
|
||||||
:return: An image.
|
:return: An image.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user