Function: svg--image-data
svg--image-data is a byte-compiled function defined in svg.el.gz.
Signature
(svg--image-data IMAGE IMAGE-TYPE DATAP)
Source Code
;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg--image-data (image image-type datap)
(with-temp-buffer
(set-buffer-multibyte nil)
(if datap
(insert image)
(insert-file-contents image))
(base64-encode-region (point-min) (point-max) t)
(goto-char (point-min))
(insert "data:" image-type ";base64,")
(buffer-string)))