Function: image-dired-optipng-thumb
image-dired-optipng-thumb is a byte-compiled function defined in
image-dired.el.gz.
Signature
(image-dired-optipng-thumb SPEC)
Documentation
Optimize thumbnail described by format SPEC with optipng(1).
Source Code
;; Defined in /usr/src/emacs/lisp/image-dired.el.gz
(defun image-dired-optipng-thumb (spec)
"Optimize thumbnail described by format SPEC with optipng(1)."
(let ((process
(apply #'start-process "image-dired-optipng" nil
image-dired-cmd-optipng-program
(mapcar (lambda (arg) (format-spec arg spec))
image-dired-cmd-optipng-options))))
(setf (process-sentinel process)
(lambda (process status)
(unless (and (eq (process-status process) 'exit)
(zerop (process-exit-status process)))
(message "command %S %s" (process-command process)
(string-replace "\n" "" status)))))
process))