Commit 1155d483 authored by Gerd Moellmann's avatar Gerd Moellmann

(image-type-regexps): For JPEG files, use a regexp

derived from the JPEG spec.
parent 69ebef1d
2001-08-07 Gerd Moellmann <gerd@gnu.org>
* image.el (image-type-regexps): For JPEG files, use a regexp
derived from the JPEG spec.
* image.el (image-type-regexps): Use `\`' instead of `^' in
most regular expressions.
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment