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

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

This variable is obsolete since 29.1; no longer used.

Value

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

Documentation

Options of command used to create temporary image for display window.

Used together with image-dired-cmd-create-temp-image-program, Available format specifiers are: %w and %h which are replaced by the calculated max size for width and height in the image display window,
%f which is replaced by the file name of the original image and %t which
is replaced by the file name of the temporary 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.el.gz
(defcustom image-dired-cmd-create-temp-image-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 temporary image for display window.
Used together with `image-dired-cmd-create-temp-image-program',
Available format specifiers are: %w and %h which are replaced by
the calculated max size for width and height in the image display window,
%f which is replaced by the file name of the original image and %t which
is replaced by the file name of the temporary file."
  :version "29.1"
  :type '(repeat (string :tag "Argument")))