changeset 38711:8b3c56aabe92

(image-type-regexps): For JPEG files, use a regexp derived from the JPEG spec.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 07 Aug 2001 08:54:36 +0000
parents c12dcf78cf71
children cf3448e30109
files lisp/image.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/image.el	Tue Aug 07 08:03:42 2001 +0000
+++ b/lisp/image.el	Tue Aug 07 08:54:36 2001 +0000
@@ -34,7 +34,8 @@
   '(("\\`/\\*.*XPM.\\*/" . xpm)
     ("\\`P[1-6]" . pbm)
     ("\\`GIF8" . gif)
-    ("JFIF" . jpeg)
+    ;; The following is from JPEG File Interchange Format, Version 1.02.
+    ("\\`\xff\xd8\xff\xe0..JFIF\0" . jpeg)
     ("\\`\211PNG\r\n" . png)
     ("\\`#define" . xbm)
     ("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)