@@ -1271,7 +1271,8 @@ def draft(self, mode, size):
1271
1271
currently implemented only for JPEG and MPO images.
1272
1272
1273
1273
: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).
1275
1276
"""
1276
1277
pass
1277
1278
@@ -2551,7 +2552,8 @@ def thumbnail(self, size, resample=Resampling.BICUBIC, reducing_gap=2.0):
2551
2552
apply this method to a :py:meth:`~PIL.Image.Image.copy` of the original
2552
2553
image.
2553
2554
2554
- :param size: Requested size.
2555
+ :param size: The requested size in pixels, as a 2-tuple:
2556
+ (width, height).
2555
2557
:param resample: Optional resampling filter. This can be one
2556
2558
of :py:data:`Resampling.NEAREST`, :py:data:`Resampling.BOX`,
2557
2559
:py:data:`Resampling.BILINEAR`, :py:data:`Resampling.HAMMING`,
@@ -2638,7 +2640,8 @@ def transform(
2638
2640
given size, and the same mode as the original, and copies data
2639
2641
to the new image using the given transform.
2640
2642
2641
- :param size: The output size.
2643
+ :param size: The output size in pixels, as a 2-tuple:
2644
+ (width, height).
2642
2645
:param method: The transformation method. This is one of
2643
2646
:py:data:`Transform.EXTENT` (cut out a rectangular subregion),
2644
2647
:py:data:`Transform.AFFINE` (affine transform),
0 commit comments