Skip to content

Commit cdd3d8e

Browse files
authoredJan 1, 2023
Merge pull request #6851 from radarhere/size
Updated size parameter descriptions
2 parents 38a93a0 + d4d981d commit cdd3d8e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎src/PIL/Image.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ def draft(self, mode, size):
12711271
currently implemented only for JPEG and MPO images.
12721272
12731273
:param mode: The requested mode.
1274-
:param size: The requested size.
1274+
:param size: The requested size in pixels, as a 2-tuple:
1275+
(width, height).
12751276
"""
12761277
pass
12771278

@@ -2551,7 +2552,8 @@ def thumbnail(self, size, resample=Resampling.BICUBIC, reducing_gap=2.0):
25512552
apply this method to a :py:meth:`~PIL.Image.Image.copy` of the original
25522553
image.
25532554
2554-
:param size: Requested size.
2555+
:param size: The requested size in pixels, as a 2-tuple:
2556+
(width, height).
25552557
:param resample: Optional resampling filter. This can be one
25562558
of :py:data:`Resampling.NEAREST`, :py:data:`Resampling.BOX`,
25572559
:py:data:`Resampling.BILINEAR`, :py:data:`Resampling.HAMMING`,
@@ -2638,7 +2640,8 @@ def transform(
26382640
given size, and the same mode as the original, and copies data
26392641
to the new image using the given transform.
26402642
2641-
:param size: The output size.
2643+
:param size: The output size in pixels, as a 2-tuple:
2644+
(width, height).
26422645
:param method: The transformation method. This is one of
26432646
:py:data:`Transform.EXTENT` (cut out a rectangular subregion),
26442647
:py:data:`Transform.AFFINE` (affine transform),

0 commit comments

Comments
 (0)
Please sign in to comment.