Variable: image-dired-cmd-pngcrush-options

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

Value

("-q" "-text" "b" "Description" "Thumbnail of file://%u" "-text" "b"
 "Software" "GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu)" "-text"
 "b" "Thumb::MTime" "%m" "-text" "b" "Thumb::URI" "file://%u" "%q"
 "%t")

Documentation

Arguments for image-dired-cmd-pngcrush-program.

The value can use the same %-format specifiers as in image-dired-cmd-create-thumbnail-options, with "%q" standing for a temporary file name (typically generated by pnqnq), and "%u" standing for a file URI corresponding to file in "%f".

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

Probably introduced at or before Emacs version 26.1.

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired-external.el.gz
;; Note: the "-text" arguments below are according to specification in
;; https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#CREATION
(defcustom image-dired-cmd-pngcrush-options
  `("-q"
    "-text" "b" "Description" "Thumbnail of file://%u"
    "-text" "b" "Software" ,(string-replace "\n" " " (emacs-version))
    ;; "-text b \"Thumb::Image::Height\" \"%oh\" "
    ;; "-text b \"Thumb::Image::Mimetype\" \"%mime\" "
    ;; "-text b \"Thumb::Image::Width\" \"%ow\" "
    "-text" "b" "Thumb::MTime" "%m"
    ;; "-text b \"Thumb::Size\" \"%b\" "
    "-text" "b" "Thumb::URI" "file://%u"
    "%q" "%t")
  "Arguments for `image-dired-cmd-pngcrush-program'.
The value can use the same %-format specifiers as in
`image-dired-cmd-create-thumbnail-options', with \"%q\" standing for a
temporary file name (typically generated by pnqnq),
and \"%u\" standing for a file URI corresponding to file in \"%f\"."
  :version "26.1"
  :type '(repeat (string :tag "Argument")))