Exiftool generates orientation like this:
<tiff:Orientation>8</tiff:Orientation>
Current code:
transposed_image.info["XML:com.adobe.xmp"] = re.sub(
r'tiff:Orientation="([0-9])"',
"",
transposed_image.info["XML:com.adobe.xmp"],
)
does not handle this situation.