Rearranged code

This commit is contained in:
Andrew Murray 2023-04-15 22:30:18 +10:00
parent 8d3014b8bf
commit bcb8dfc2fa

View File

@ -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()