Skip to content

Commit aa619a1

Browse files
committed
Removed untested change
1 parent 50b993a commit aa619a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PIL/Image.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,9 +1548,7 @@ def getexif(self) -> Exif:
15481548

15491549
# XMP tags
15501550
if ExifTags.Base.Orientation not in self._exif:
1551-
xmp_tags = self.info.get("XML:com.adobe.xmp") or self.info.get("xmp")
1552-
if isinstance(xmp_tags, bytes):
1553-
xmp_tags = xmp_tags.decode("utf-8")
1551+
xmp_tags = self.info.get("XML:com.adobe.xmp")
15541552
if xmp_tags:
15551553
match = re.search(r'tiff:Orientation(="|>)([0-9])', xmp_tags)
15561554
if match:

0 commit comments

Comments
 (0)