Skip to content

Commit

Permalink
Merge pull request #6476 from radarhere/exif
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 9, 2022
2 parents 5d71ba3 + 8ce2890 commit 92b0f2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PIL/ImageOps.py
Expand Up @@ -572,8 +572,11 @@ def solarize(image, threshold=128):

def exif_transpose(image):
"""
If an image has an EXIF Orientation tag, return a new image that is
transposed accordingly. Otherwise, return a copy of the image.
If an image has an EXIF Orientation tag, other than 1, return a new image
that is transposed accordingly. The new image will have the orientation
data removed.
Otherwise, return a copy of the image.
:param image: The image to transpose.
:return: An image.
Expand Down

0 comments on commit 92b0f2c

Please sign in to comment.