mirror of https://github.com/djcb/mu.git
* mu4e-utils.el: better runtime check for imagemagick
This commit is contained in:
parent
d23277f3b3
commit
bbbc8538ea
|
@ -736,8 +736,10 @@ mu4e logs some of its internal workings to a log-buffer. See
|
||||||
MAXWIDTH. Function tries to use imagemagick if available (ie.,
|
MAXWIDTH. Function tries to use imagemagick if available (ie.,
|
||||||
emacs was compiled with inmagemagick support); otherwise MAXWIDTH
|
emacs was compiled with inmagemagick support); otherwise MAXWIDTH
|
||||||
is ignored."
|
is ignored."
|
||||||
(let* ((have-im (boundp 'imagemagick))
|
(let* ((have-im (and (fboundp 'imagemagick-types)
|
||||||
(identify (and have-im maxwidth (executable-find mu4e-imagemagick-identify)))
|
(imagemagick-types))) ;; hmm, should check for specific type
|
||||||
|
(identify (and have-im maxwidth
|
||||||
|
(executable-find mu4e-imagemagick-identify)))
|
||||||
(props (and identify (shell-command-to-string
|
(props (and identify (shell-command-to-string
|
||||||
(format "%s -format '%%w' %s"
|
(format "%s -format '%%w' %s"
|
||||||
identify (shell-quote-argument imgpath)))))
|
identify (shell-quote-argument imgpath)))))
|
||||||
|
|
Loading…
Reference in New Issue