Skip to content

Commit

Permalink
Refs #94794 work around Pillow exif bug
Browse files Browse the repository at this point in the history
Bug was reported here: python-pillow/Pillow#6334
  • Loading branch information
gverm committed May 27, 2022
1 parent b4f283a commit 0443d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def add_exif_data(mediafile):
exif_strings = _get_exif_strings(mediafile["metadata"])
img = Image.open(image)
exif = img.getexif()
img.load()
exif[0x013B] = exif_strings["artist"]
exif[0x8298] = exif_strings["copyright"]
buf = io.BytesIO()
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aniso8601==9.0.1
Authlib==1.0.1
boto3==1.23.8
botocore==1.26.8
boto3==1.23.9
botocore==1.26.9
certifi==2022.5.18.1
cffi==1.15.0
charset-normalizer==2.0.12
Expand Down

0 comments on commit 0443d33

Please sign in to comment.