We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92fda5a commit f566795Copy full SHA for f566795
lisp/image/image-converter.el
@@ -87,6 +87,9 @@ data is returned as a string."
87
(image-converter--find-converter))
88
(unless image-converter
89
(error "No external image converters available"))
90
+ (when (and image-format
91
+ (not (= (length (split-string (symbol-name image-format) "/")) 2)))
92
+ (error "IMAGE-FORMAT should be a symbol like `image/png'"))
93
(with-temp-buffer
94
(set-buffer-multibyte nil)
95
(when-let ((err (image-converter--convert
0 commit comments