We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50b993a commit aa619a1Copy full SHA for aa619a1
src/PIL/Image.py
@@ -1548,9 +1548,7 @@ def getexif(self) -> Exif:
1548
1549
# XMP tags
1550
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")
+ xmp_tags = self.info.get("XML:com.adobe.xmp")
1554
if xmp_tags:
1555
match = re.search(r'tiff:Orientation(="|>)([0-9])', xmp_tags)
1556
if match:
0 commit comments