summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-11-21 14:02:00 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2019-11-21 14:02:00 +0100
commit4a13c2af9b98176f2e51061c525313e8af1a0231 (patch)
tree3052cfc35312a7a28e976e60c28c6bef83ccd9b4
parent832bdaf6e5ea8a27784099a60f8e401dbe85d6f8 (diff)
downloademacs-4a13c2af9b98176f2e51061c525313e8af1a0231.tar.gz
Fix loading image-converter in the case where the type is passed in
* lisp/image.el (create-image): Load image-converter when converting images (bug#38310).
-rw-r--r--lisp/image.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/image.el b/lisp/image.el
index e0965c10914..6e19f17fd25 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -480,6 +480,7 @@ Image file names that are not absolute are searched for in the
;; If we have external image conversion switched on (for exotic,
;; non-native image formats), then we convert the file.
(when (eq type 'image-convert)
+ (require 'image-converter)
(setq file-or-data (image-convert file-or-data data-format)
type 'png
data-p t)))