mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Changed inPlace to be keyword-only argument
This commit is contained in:
parent
8bbd4ada9b
commit
f338f35657
|
@ -576,13 +576,13 @@ def solarize(image, threshold=128):
|
||||||
return _lut(image, lut)
|
return _lut(image, lut)
|
||||||
|
|
||||||
|
|
||||||
def exif_transpose(image, inPlace=False):
|
def exif_transpose(image, *, inPlace=False):
|
||||||
"""
|
"""
|
||||||
If an image has an EXIF Orientation tag, other than 1, transpose the image
|
If an image has an EXIF Orientation tag, other than 1, transpose the image
|
||||||
accordingly, and remove the orientation data.
|
accordingly, and remove the orientation data.
|
||||||
|
|
||||||
:param image: The image to transpose.
|
:param image: The image to transpose.
|
||||||
:param inPlace: Boolean.
|
:param inPlace: Boolean. Keyword-only argument.
|
||||||
If ``True``, the original image is modified in-place, and ``None`` is returned.
|
If ``True``, the original image is modified in-place, and ``None`` is returned.
|
||||||
If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned
|
If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned
|
||||||
with the transposition applied. If there is no transposition, a copy of the
|
with the transposition applied. If there is no transposition, a copy of the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user