Skip to content

Commit

Permalink
Do not save orientation in EXIF data
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 7, 2024
1 parent 003f0a3 commit 4d9d0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/AvifImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _save(
else:
exif_data = Image.Exif()
exif_data.load(exif)
exif_orientation = exif_data.get(ExifTags.Base.Orientation, 0)
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 4d9d0d6

Please sign in to comment.