Function: mh-x-image-scale-with-pnm

mh-x-image-scale-with-pnm is a byte-compiled function defined in mh-xface.el.gz.

Signature

(mh-x-image-scale-with-pnm INPUT OUTPUT)

Documentation

Scale image in INPUT file and write to OUTPUT file using pnm tools.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-xface.el.gz
(defun mh-x-image-scale-with-pnm (input output)
  "Scale image in INPUT file and write to OUTPUT file using pnm tools."
  (let ((res (shell-command-to-string
              (format "anytopnm < %s | pnmscale -xysize 96 48 | pnmtopng > %s"
                      input output))))
    (unless (equal res "")
      (delete-file output))))