Project

General

Profile

Bug #54667

ckeditor et miniature de .webp

Added by Frédéric Péters 9 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08 Jun 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

(formellement le code est dans django-ckeditor, pas combo),

File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/usr/lib/python3/dist-packages/django/views/generic/edit.py" in post
  183.             return self.form_valid(form)

File "/usr/lib/python3/dist-packages/combo/apps/assets/views.py" in form_valid
  172.         ckeditor_upload_view.post(self.request)

File "/usr/lib/python3/dist-packages/ckeditor/views.py" in post
  59.             backend.create_thumbnail(saved_path)

File "/usr/lib/python3/dist-packages/ckeditor/image/pillow_backend.py" in create_thumbnail
  27.     thumbnail_format = utils.get_image_format(os.path.splitext(file_path)[1])

File "/usr/lib/python3/dist-packages/ckeditor/utils.py" in get_image_format
  64.     return mimetypes.types_map[extension.lower()]

Exception Type: KeyError at /manage/assets/upload/
Exception Value: '.webp'

Also available in: Atom PDF