Function: thumbs-call-convert
thumbs-call-convert is a byte-compiled function defined in
thumbs.el.gz.
Signature
(thumbs-call-convert FILEIN FILEOUT ACTION &optional ARG OUTPUT-FORMAT ACTION-PREFIX)
Documentation
Call the convert program.
FILEIN is the input file,
FILEOUT is the output file,
ACTION is the command to send to convert.
Optional arguments are:
ARG if non-nil, the argument of the ACTION command,
OUTPUT-FORMAT is the file format to output (default is jpeg),
ACTION-PREFIX is the symbol to place before the ACTION command
(defaults to - but can sometimes be +).
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/thumbs.el.gz
(defun thumbs-call-convert (filein fileout action
&optional arg output-format action-prefix)
"Call the convert program.
FILEIN is the input file,
FILEOUT is the output file,
ACTION is the command to send to convert.
Optional arguments are:
ARG if non-nil, the argument of the ACTION command,
OUTPUT-FORMAT is the file format to output (default is jpeg),
ACTION-PREFIX is the symbol to place before the ACTION command
(defaults to `-' but can sometimes be `+')."
(let ((action-param (concat (or action-prefix "-") action))
(fileout-param (format "%s:%s" (or output-format "jpeg") fileout)))
(if arg
(call-process thumbs-conversion-program nil nil nil
action-param arg filein fileout-param)
(call-process thumbs-conversion-program nil nil nil
action-param filein fileout-param))))