Function: image-crop--content-type

image-crop--content-type is a byte-compiled function defined in image-crop.el.gz.

Signature

(image-crop--content-type IMAGE)

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-crop.el.gz
(defun image-crop--content-type (image)
  ;; Get the MIME type by running "file" over it.
  (with-temp-buffer
    (set-buffer-multibyte nil)
    (insert image)
    (call-process-region (point-min) (point-max)
			 "file" t (current-buffer) nil
			 "--mime-type" "-")
    (cadr (split-string (buffer-string)))))