mu4e: Fix issue with mu4e-display-image
We were getting an error when `identify` is nil.
This commit is contained in:
@ -1129,11 +1129,10 @@ and MAXHEIGHT are ignored."
|
|||||||
(imagemagick-types))) ;; hmm, should check for specific type
|
(imagemagick-types))) ;; hmm, should check for specific type
|
||||||
(identify (and have-im maxwidth
|
(identify (and have-im maxwidth
|
||||||
(executable-find mu4e-imagemagick-identify)))
|
(executable-find mu4e-imagemagick-identify)))
|
||||||
(props (mapcar 'string-to-number
|
(props (and identify (mapcar 'string-to-number
|
||||||
(split-string (and identify
|
(split-string (shell-command-to-string
|
||||||
(shell-command-to-string
|
(format "%s -format '%%w %%h' %s"
|
||||||
(format "%s -format '%%w %%h' %s"
|
identify (shell-quote-argument imgpath)))))))
|
||||||
identify (shell-quote-argument imgpath)))))))
|
|
||||||
(width (and props (car props)))
|
(width (and props (car props)))
|
||||||
(height (and props (car (cdr props))))
|
(height (and props (car (cdr props))))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user