1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00

; Revert "Recognize graphicsmagick in image-dired"

This reverts commit 5c266405f5.
There are too many annoying differences between GM and IM to make this
default behavior.
This commit is contained in:
Mark Oteiza 2016-12-20 11:14:53 -05:00
parent 15817f4e3a
commit 221d3a9767

View file

@ -221,19 +221,14 @@ expects to find pictures in this directory."
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-create-thumbnail-program (defcustom image-dired-cmd-create-thumbnail-program
(cond ((executable-find "gm") "gm") "convert"
((executable-find "convert") "convert")
(t "convert"))
"Executable used to create thumbnail. "Executable used to create thumbnail.
Used together with `image-dired-cmd-create-thumbnail-options'." Used together with `image-dired-cmd-create-thumbnail-options'."
:version "26.1"
:type 'file :type 'file
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-create-thumbnail-options (defcustom image-dired-cmd-create-thumbnail-options
`(,@(when (string-match "gm\\'" image-dired-cmd-create-thumbnail-program) '("-size" "%wx%h" "%f" "-resize" "%wx%h>" "-strip" "jpeg:%t")
'("convert"))
"-size" "%wx%h" "%f" "-resize" "%wx%h>" "-strip" "jpeg:%t")
"Options of command used to create thumbnail image. "Options of command used to create thumbnail image.
Used with `image-dired-cmd-create-thumbnail-program'. Used with `image-dired-cmd-create-thumbnail-program'.
Available format specifiers are: %w which is replaced by Available format specifiers are: %w which is replaced by
@ -244,20 +239,14 @@ which is replaced by the file name of the thumbnail file."
:type '(repeat (string :tag "Argument")) :type '(repeat (string :tag "Argument"))
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-create-temp-image-program (defcustom image-dired-cmd-create-temp-image-program "convert"
(cond ((executable-find "gm") "gm")
((executable-find "convert") "convert")
(t "convert"))
"Executable used to create temporary image. "Executable used to create temporary image.
Used together with `image-dired-cmd-create-temp-image-options'." Used together with `image-dired-cmd-create-temp-image-options'."
:version "26.1"
:type 'file :type 'file
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-create-temp-image-options (defcustom image-dired-cmd-create-temp-image-options
`(,@(when (string-match "gm\\'" image-dired-cmd-create-temp-image-program) '("-size" "%wx%h" "%f" "-resize" "%wx%h>" "-strip" "jpeg:%t")
'("convert"))
"-size" "%wx%h" "%f" "-resize" "%wx%h>" "-strip" "jpeg:%t")
"Options of command used to create temporary image for display window. "Options of command used to create temporary image for display window.
Used together with `image-dired-cmd-create-temp-image-program', Used together with `image-dired-cmd-create-temp-image-program',
Available format specifiers are: %w and %h which are replaced by Available format specifiers are: %w and %h which are replaced by
@ -327,17 +316,15 @@ Available format specifiers are described in
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-create-standard-thumbnail-options (defcustom image-dired-cmd-create-standard-thumbnail-options
`(,@(when (string-match "gm\\'" image-dired-cmd-create-thumbnail-program) (append '("-size" "%wx%h" "%f")
'("convert")) (unless (or image-dired-cmd-pngcrush-program
"-size" "%wx%h" "%f" image-dired-cmd-pngnq-program)
,@(unless (or image-dired-cmd-pngcrush-program (list
image-dired-cmd-pngnq-program) "-set" "Thumb::MTime" "%m"
(list "-set" "Thumb::URI" "file://%f"
"-set" "Thumb::MTime" "%m" "-set" "Description" "Thumbnail of file://%f"
"-set" "Thumb::URI" "file://%f" "-set" "Software" (emacs-version)))
"-set" "Description" "Thumbnail of file://%f" '("-thumbnail" "%wx%h>" "png:%t"))
"-set" "Software" (emacs-version)))
"-thumbnail" "%wx%h>" "png:%t")
"Options for creating thumbnails according to the Thumbnail Managing Standard. "Options for creating thumbnails according to the Thumbnail Managing Standard.
Available format specifiers are the same as in Available format specifiers are the same as in
`image-dired-cmd-create-thumbnail-options', with %m for file modification time." `image-dired-cmd-create-thumbnail-options', with %m for file modification time."
@ -346,19 +333,14 @@ Available format specifiers are the same as in
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-rotate-thumbnail-program (defcustom image-dired-cmd-rotate-thumbnail-program
(cond ((executable-find "gm") "gm") "mogrify"
((executable-find "mogrify") "mogrify")
(t "mogrify"))
"Executable used to rotate thumbnail. "Executable used to rotate thumbnail.
Used together with `image-dired-cmd-rotate-thumbnail-options'." Used together with `image-dired-cmd-rotate-thumbnail-options'."
:version "26.1"
:type 'file :type 'file
:group 'image-dired) :group 'image-dired)
(defcustom image-dired-cmd-rotate-thumbnail-options (defcustom image-dired-cmd-rotate-thumbnail-options
`(,@(when (string-match "gm\\'" image-dired-cmd-rotate-thumbnail-program) '("-rotate" "%d" "%t")
'("mogrify"))
"-rotate" "%d" "%t")
"Arguments of command used to rotate thumbnail image. "Arguments of command used to rotate thumbnail image.
Used with `image-dired-cmd-rotate-thumbnail-program'. Used with `image-dired-cmd-rotate-thumbnail-program'.
Available format specifiers are: %d which is replaced by the Available format specifiers are: %d which is replaced by the