kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Merge branch 'techknowlogick-develop-patch-80718' into 'develop'
Allow files with upper case extensions when uploading avatar See merge request funkwhale/funkwhale!1022merge-requests/1042/head
commit
031cc68375
|
@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
|
|||
with io.BytesIO() as output:
|
||||
image_without_exif.save(
|
||||
output,
|
||||
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1]],
|
||||
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1].lower()],
|
||||
quality=100,
|
||||
)
|
||||
content = output.getvalue()
|
||||
|
|
Ładowanie…
Reference in New Issue