(defvar image-dired-thumb-width)
(defvar image-dired-thumbnail-storage)
+(defgroup image-dired-external nil
+ "External process support for Image-Dired."
+ :prefix "image-dired-"
+ :link '(info-link "(emacs) Image-Dired")
+ :group 'image-dired)
+
(defcustom image-dired-cmd-create-thumbnail-program
(if (executable-find "gm") "gm" "convert")
"Executable used to create thumbnail.
Used together with `image-dired-cmd-create-thumbnail-options'."
:type 'file
- :version "29.1"
- :group 'image-dired)
+ :version "29.1")
(defcustom image-dired-cmd-create-thumbnail-options
(let ((opts '("-size" "%wx%h" "%f[0]"
`image-dired-thumb-width', %h which is replaced by `image-dired-thumb-height',
%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."
- :group 'image-dired
:version "29.1"
:type '(repeat (string :tag "Argument")))
"The file name of the `pngquant' or `pngnq' program.
It quantizes colors of PNG images down to 256 colors or fewer
using the NeuQuant algorithm."
- :group 'image-dired
:version "29.1"
:type '(choice (const :tag "Not Set" nil) file))
"Arguments to pass `image-dired-cmd-pngnq-program'.
Available format specifiers are the same as in
`image-dired-cmd-create-thumbnail-options'."
- :group 'image-dired
:type '(repeat (string :tag "Argument"))
:version "29.1")
"The file name of the `pngcrush' program.
It optimizes the compression of PNG images. Also it adds PNG textual chunks
with the information required by the Thumbnail Managing Standard."
- :group 'image-dired
:type '(choice (const :tag "Not Set" nil) file))
(defcustom image-dired-cmd-pngcrush-options
Available format specifiers are the same as in
`image-dired-cmd-create-thumbnail-options', with %q for a
temporary file name (typically generated by pnqnq)."
- :group 'image-dired
:version "26.1"
:type '(repeat (string :tag "Argument")))
(defcustom image-dired-cmd-optipng-program (executable-find "optipng")
"The file name of the `optipng' program."
- :group 'image-dired
:version "26.1"
:type '(choice (const :tag "Not Set" nil) file))
"Arguments passed to `image-dired-cmd-optipng-program'.
Available format specifiers are described in
`image-dired-cmd-create-thumbnail-options'."
- :group 'image-dired
:version "26.1"
:type '(repeat (string :tag "Argument"))
:link '(url-link "man:optipng(1)"))
"Options for creating thumbnails according to the Thumbnail Managing Standard.
Available format specifiers are the same as in
`image-dired-cmd-create-thumbnail-options', with %m for file modification time."
- :group 'image-dired
:version "26.1"
:type '(repeat (string :tag "Argument")))
"jpegtran"
"Executable used to rotate original image.
Used together with `image-dired-cmd-rotate-original-options'."
- :group 'image-dired
:type 'file)
(defcustom image-dired-cmd-rotate-original-options
270 \(for 90 degrees right and left), %o which is replaced by the
original image file name and %t which is replaced by
`image-dired-temp-image-file'."
- :group 'image-dired
:version "26.1"
:type '(repeat (string :tag "Argument")))
(expand-file-name ".image-dired_rotate_temp"
(locate-user-emacs-file "image-dired/"))
"Temporary file for rotate operations."
- :group 'image-dired
:type 'file)
(defcustom image-dired-cmd-write-exif-data-program "exiftool"
"Program used to write EXIF data to image.
Used together with `image-dired-cmd-write-exif-data-options'."
- :group 'image-dired
:type 'file)
(defcustom image-dired-cmd-write-exif-data-options
Available format specifiers are: %f which is replaced by
the image file name, %t which is replaced by the tag name and %v
which is replaced by the tag value."
- :group 'image-dired
:version "26.1"
:type '(repeat (string :tag "Argument")))