Function: image-dired-create-thumbs
image-dired-create-thumbs is an interactive and byte-compiled function
defined in image-dired.el.gz.
Signature
(image-dired-create-thumbs &optional ARG)
Documentation
Create thumbnail images for all marked files in Dired.
With prefix argument ARG, create thumbnails even if they already exist
(i.e. use this to refresh your thumbnails).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-dired.el.gz
(defun image-dired-create-thumbs (&optional arg)
"Create thumbnail images for all marked files in Dired.
With prefix argument ARG, create thumbnails even if they already exist
\(i.e. use this to refresh your thumbnails)."
(interactive "P")
(let (thumb-name)
(dolist (curr-file (dired-get-marked-files))
(setq thumb-name (image-dired-thumb-name curr-file))
;; If the user overrides the exist check, we must clear the
;; image cache so that if the user wants to display the
;; thumbnail, it is not fetched from cache.
(when arg
(clear-image-cache (expand-file-name thumb-name)))
(when (or (not (file-exists-p thumb-name))
arg)
(image-dired-create-thumb curr-file thumb-name)))))