Variable: image-dired-cmd-create-thumbnail-options

image-dired-cmd-create-thumbnail-options is a customizable variable defined in image-dired-external.el.gz.

Value

("-size" "%wx%h" "%f[0]" "-resize" "%wx%h>" "-strip" "jpeg:%t")

Documentation

Options of command used to create thumbnail image.

Used with image-dired-cmd-create-thumbnail-program, if that is available. Available format specifiers are:
    %s, %w and %h, which are replaced by image-dired-thumb-size(var)/image-dired-thumb-size(fun)
    %f which is replaced by the file name of the original image and
    %t which is replaced by the file name of the thumbnail file.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 26.1.

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired-external.el.gz
(defcustom image-dired-cmd-create-thumbnail-options
  (let ((opts '("-size" "%wx%h" "%f[0]"
                "-resize" "%wx%h>"
                "-strip" "jpeg:%t")))
    (if (executable-find "gm") (cons "convert" opts) opts))
  "Options of command used to create thumbnail image.
Used with `image-dired-cmd-create-thumbnail-program', if that is
available.
Available format specifiers are:
    %s, %w and %h, which are replaced by `image-dired-thumb-size'
    %f which is replaced by the file name of the original image and
    %t which is replaced by the file name of the thumbnail file."
  :type '(repeat (string :tag "Argument"))
  :version "29.1")