]> git.eshelyaron.com Git - emacs.git/commitdiff
Make gnus display webp images inline
authorVisuwesh <visuweshm@gmail.com>
Thu, 14 Jul 2022 17:41:58 +0000 (19:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 17:41:58 +0000 (19:41 +0200)
* lisp/gnus/mm-decode.el (mm-inline-media-tests): Add webp handler.
* lisp/net/mailcap.el (mailcap-mime-extensions): Add webp mimetype
(bug#56552).

lisp/gnus/mm-decode.el
lisp/net/mailcap.el

index 7256e5a2f7c21fe4bdb253b250106225e16ae0d4..79217d3400176b9347fda97150f5891fb86b2794 100644 (file)
@@ -193,7 +193,11 @@ before the external MIME handler is invoked."
   `(("image/p?jpeg"
      mm-inline-image
      ,(lambda (handle)
-       (mm-valid-and-fit-image-p 'jpeg handle)))
+        (mm-valid-and-fit-image-p 'jpeg handle)))
+    ("image/webp"
+     mm-inline-image
+     ,(lambda (handle)
+       (mm-valid-and-fit-image-p 'webp handle)))
     ("image/png"
      mm-inline-image
      ,(lambda (handle)
index 8ba7f1bec3d792e34e53c982f12c45f4840cb5ee..ee72eba35db2f847ab2acbe79531ca3d1a3613dc 100644 (file)
@@ -974,6 +974,7 @@ If NO-DECODE is non-nil, don't decode STRING."
     (".ai"    . "application/postscript")
     (".jpe"   . "image/jpeg")
     (".jpeg"  . "image/jpeg")
+    (".webp"  . "image/webp")
     (".org"   . "text/x-org"))
   "An alist of file extensions and corresponding MIME content-types.
 This exists for you to customize the information in Lisp.  It is