commit 67dbe069818b0755620f7fa83dc34667f8ff3893 parent 07d66d62785f568a271f0d51f4486b75c45cbf23 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Wed, 11 Nov 2015 10:08:17 +0530 Make sure PNG is supported by imagemagick before using imagemagick to display images Diffstat:
M | emojify.el | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/emojify.el b/emojify.el @@ -459,8 +459,10 @@ mark the start and end of region containing the text." emojify-image-dir))) (when (file-exists-p image-file) (create-image image-file - ;; use imagemagick if available (allows resizing images - (when (fboundp 'imagemagick-types) + ;; use imagemagick if available and supports PNG images + ;; (allows resizing images) + (when (and (fboundp 'imagemagick-types) + (memq 'PNG (imagemagick-types))) 'imagemagick) nil :ascent 'center