Function: gnus-convert-png-to-face

gnus-convert-png-to-face is a byte-compiled function defined in gnus-fun.el.gz.

Signature

(gnus-convert-png-to-face FILE)

Documentation

Convert FILE to a Face.

FILE should be a PNG file that's 48x48 and smaller than or equal to
726 bytes.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-fun.el.gz
;;;###autoload
(defun gnus-convert-png-to-face (file)
  "Convert FILE to a Face.
FILE should be a PNG file that's 48x48 and smaller than or equal to
726 bytes."
  (mm-with-unibyte-buffer
    (insert-file-contents file)
    (when (> (buffer-size) 726)
      (error "The file is %d bytes long, which is too long"
	     (buffer-size)))
    (gnus-face-encode)))