Function: thumbs-modify-image
thumbs-modify-image is an interactive and byte-compiled function
defined in thumbs.el.gz.
Signature
(thumbs-modify-image ACTION &optional ARG)
Documentation
Call convert to do ACTION on image with argument ARG.
ACTION and ARG should be a valid convert command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/thumbs.el.gz
;; Image modification routines
(defun thumbs-modify-image (action &optional arg)
"Call convert to do ACTION on image with argument ARG.
ACTION and ARG should be a valid convert command."
(interactive "sAction: \nsValue: ")
(let* ((buffer-read-only nil)
(old thumbs-current-tmp-filename)
(tmp (thumbs-temp-file)))
(erase-buffer)
(thumbs-call-convert (or old thumbs-current-image-filename)
tmp
action
arg)
(save-excursion
(thumbs-insert-image tmp 'jpeg 0))
(setq thumbs-current-tmp-filename tmp)))