Allow editing webp images in the editor

This commit is contained in:
Kovid Goyal 2021-04-02 16:38:18 +05:30
parent 555b629e17
commit 20d53b1081
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -24,7 +24,7 @@ def syntax_from_mime(name, mime):
if mime.startswith('text/'):
return 'text'
if mime.startswith('image/') and mime.partition('/')[-1].lower() in {
'jpeg', 'jpg', 'gif', 'png'}:
'jpeg', 'jpg', 'gif', 'png', 'webp'}:
return 'raster_image'
if mime.endswith('+xml'):
return 'xml'