Merge pull request #6476 from radarhere/exif

This commit is contained in:
Hugo van Kemenade 2022-08-09 15:08:54 +03:00 committed by GitHub
commit 92b0f2c919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.