mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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(
|
exif_image.info["XML:com.adobe.xmp"] = re.sub(
|
||||||
pattern, "", exif_image.info["XML:com.adobe.xmp"]
|
pattern, "", exif_image.info["XML:com.adobe.xmp"]
|
||||||
)
|
)
|
||||||
if inPlace:
|
if not inPlace:
|
||||||
return
|
return transposed_image
|
||||||
return transposed_image
|
elif not inPlace:
|
||||||
if inPlace:
|
return image.copy()
|
||||||
return
|
|
||||||
return image.copy()
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user