Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated size parameter descriptions #6851

Merged
merged 1 commit into from Jan 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/PIL/Image.py
Expand Up @@ -1271,7 +1271,8 @@ def draft(self, mode, size):
currently implemented only for JPEG and MPO images.

:param mode: The requested mode.
:param size: The requested size.
:param size: The requested size in pixels, as a 2-tuple:
(width, height).
"""
pass

Expand Down Expand Up @@ -2551,7 +2552,8 @@ def thumbnail(self, size, resample=Resampling.BICUBIC, reducing_gap=2.0):
apply this method to a :py:meth:`~PIL.Image.Image.copy` of the original
image.

:param size: Requested size.
:param size: The requested size in pixels, as a 2-tuple:
(width, height).
:param resample: Optional resampling filter. This can be one
of :py:data:`Resampling.NEAREST`, :py:data:`Resampling.BOX`,
:py:data:`Resampling.BILINEAR`, :py:data:`Resampling.HAMMING`,
Expand Down Expand Up @@ -2638,7 +2640,8 @@ def transform(
given size, and the same mode as the original, and copies data
to the new image using the given transform.

:param size: The output size.
:param size: The output size in pixels, as a 2-tuple:
(width, height).
:param method: The transformation method. This is one of
:py:data:`Transform.EXTENT` (cut out a rectangular subregion),
:py:data:`Transform.AFFINE` (affine transform),
Expand Down