aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2016-12-14 16:34:12 -0500
committerMark Oteiza2016-12-14 16:34:12 -0500
commit53e8d7fb80d5c99b11906f100d9cb1ace358a0dc (patch)
tree7394c66c03d8f4e82a166f46cbb438f3a60599e1
parent66ccc65935c389942f1bc72e968846d8dab9951b (diff)
downloademacs-53e8d7fb80d5c99b11906f100d9cb1ace358a0dc.tar.gz
emacs-53e8d7fb80d5c99b11906f100d9cb1ace358a0dc.zip
Recognize pngnq or pngnq-s9
* lisp/image-dired.el (image-dired-cmd-pngnq-program): Also consider pngnq-s9 as a possible executable.
-rw-r--r--lisp/image-dired.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index 066a9949166..61cf89c935d 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -255,9 +255,13 @@ is replaced by the file name of the temporary file."
255 :type 'string 255 :type 'string
256 :group 'image-dired) 256 :group 'image-dired)
257 257
258(defcustom image-dired-cmd-pngnq-program (executable-find "pngnq") 258(defcustom image-dired-cmd-pngnq-program
259 (or (executable-find "pngnq")
260 (executable-find "pngnq-s9"))
259 "The file name of the `pngnq' program. 261 "The file name of the `pngnq' program.
260It quantizes colors of PNG images down to 256 colors." 262It quantizes colors of PNG images down to 256 colors or fewer
263using the Neuquant procedure."
264 :version "26.1"
261 :type '(choice (const :tag "Not Set" nil) string) 265 :type '(choice (const :tag "Not Set" nil) string)
262 :group 'image-dired) 266 :group 'image-dired)
263 267