From 5e6918fd070562938dd7c94b2bcd06ec9fd27a2a Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Tue, 20 Oct 2020 16:21:43 -0400 Subject: [PATCH] Add webp image support --- grip/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/grip/command.py b/grip/command.py index 3fcb0de..48a0011 100644 --- a/grip/command.py +++ b/grip/command.py @@ -69,6 +69,7 @@ def main(argv=None, force_utf8=True, patch_svg=True): sys.setdefaultencoding('utf-8') if patch_svg and sys.version_info[0] == 2 and sys.version_info[1] <= 6: mimetypes.add_type('image/svg+xml', '.svg') + mimetypes.add_type('image/webp', '.webp') if argv is None: argv = sys.argv[1:]