mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-04-15 14:54:06 +00:00
Added return type annotation to remove_uploaded_image_exif
This commit is contained in:
parent
7a50943ea5
commit
e11a5aba14
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ from PIL import Image
|
|||
from django.core.files.uploadedfile import InMemoryUploadedFile
|
||||
|
||||
|
||||
def remove_uploaded_image_exif(source: InMemoryUploadedFile):
|
||||
def remove_uploaded_image_exif(source: InMemoryUploadedFile) -> InMemoryUploadedFile:
|
||||
"""Removes EXIF data from provided image and returns a sanitized copy"""
|
||||
io = BytesIO()
|
||||
with Image.open(source) as image:
|
||||
|
|
Loading…
Reference in a new issue