Skip to content

Commit

Permalink
alt
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 7, 2024
1 parent 7b9e090 commit dbe1d41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PIL/AvifImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,7 @@ def _save(
else:
exif_data = Image.Exif()
exif_data.load(exif)
try:
exif_orientation = exif_data.pop(ExifTags.Base.Orientation)
except KeyError:
pass
exif_orientation = exif_data.pop(ExifTags.Base.Orientation, 0)

xmp = info.get("xmp", im.info.get("xmp") or im.info.get("XML:com.adobe.xmp"))

Expand Down

0 comments on commit dbe1d41

Please sign in to comment.