mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow editing webp images in the editor
This commit is contained in:
parent
555b629e17
commit
20d53b1081
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user