Function: thumbs-image-type
thumbs-image-type is a byte-compiled function defined in thumbs.el.gz.
Signature
(thumbs-image-type IMG)
Documentation
Return image type from filename IMG.
Source Code
;; Defined in /usr/src/emacs/lisp/thumbs.el.gz
(defun thumbs-image-type (img)
"Return image type from filename IMG."
(cond ((string-match ".*\\.jpe?g\\'" img) 'jpeg)
((string-match ".*\\.xpm\\'" img) 'xpm)
((string-match ".*\\.xbm\\'" img) 'xbm)
((string-match ".*\\.pbm\\'" img) 'pbm)
((string-match ".*\\.gif\\'" img) 'gif)
((string-match ".*\\.bmp\\'" img) 'bmp)
((string-match ".*\\.png\\'" img) 'png)
((string-match ".*\\.tiff?\\'" img) 'tiff)))