mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Rearranged code
This commit is contained in:
parent
8d3014b8bf
commit
bcb8dfc2fa
|
@ -622,9 +622,7 @@ def exif_transpose(image, inPlace=False):
|
|||
exif_image.info["XML:com.adobe.xmp"] = re.sub(
|
||||
pattern, "", exif_image.info["XML:com.adobe.xmp"]
|
||||
)
|
||||
if inPlace:
|
||||
return
|
||||
return transposed_image
|
||||
if inPlace:
|
||||
return
|
||||
return image.copy()
|
||||
if not inPlace:
|
||||
return transposed_image
|
||||
elif not inPlace:
|
||||
return image.copy()
|
||||
|
|
Loading…
Reference in New Issue
Block a user