Variable: mm-image-type-regexps

mm-image-type-regexps is a variable defined in mm-decode.el.gz.

Value

(("/\\*.*XPM.\\*/" . xpm)
 ("P[1-6]" . pbm)
 ("GIF8" . gif)
 ("\377\330" . jpeg)
 ("\211PNG
\n" . png)
 ("#define" . xbm)
 ("\\(MM�\\*\\)\\|\\(II\\*�\\)" . tiff)
 ("%!PS" . postscript))

Documentation

Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.

When the first bytes of an image file match REGEXP, it is assumed to be of image type IMAGE-TYPE.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/mm-decode.el.gz
(defconst mm-image-type-regexps
  '(("/\\*.*XPM.\\*/" . xpm)
    ("P[1-6]" . pbm)
    ("GIF8" . gif)
    ("\377\330" . jpeg)
    ("\211PNG\r\n" . png)
    ("#define" . xbm)
    ("\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
    ("%!PS" . postscript))
  "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.
When the first bytes of an image file match REGEXP, it is assumed to
be of image type IMAGE-TYPE.")