mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Whitespace
This commit is contained in:
parent
e220e00386
commit
404d6f31c7
|
@ -741,7 +741,7 @@ class Image(object):
|
|||
|
||||
:param encoder_name: What encoder to use. The default is to
|
||||
use the standard "raw" encoder.
|
||||
:param *args: Extra arguments to the encoder. May be one tuple,
|
||||
:param *args: Extra arguments to the encoder. May be one tuple,
|
||||
or individual arguments
|
||||
:rtype: A bytes object.
|
||||
"""
|
||||
|
@ -2002,7 +2002,7 @@ class Image(object):
|
|||
open_fp = True
|
||||
else:
|
||||
_fp = fp # type: ignore
|
||||
|
||||
|
||||
if not filename and hasattr(_fp, "name") and isPath(_fp.name):
|
||||
# only set the name for metadata purposes
|
||||
filename = _fp.name
|
||||
|
@ -2227,7 +2227,7 @@ class Image(object):
|
|||
in the output image.
|
||||
:returns: An :py:class:`~PIL.Image.Image` object.
|
||||
"""
|
||||
|
||||
|
||||
if self.mode == 'LA':
|
||||
return self.convert('La').transform(
|
||||
size, method, data, resample, fill).convert('LA')
|
||||
|
|
Loading…
Reference in New Issue
Block a user