aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-29 01:26:02 +0200
committerLars Ingebrigtsen2019-09-29 01:26:12 +0200
commit63f4f02aa78e6b48f7ee346d31a813ca0978651e (patch)
treee6b5ffc22538c804ad2dc597eb2e9458385900c4 /doc
parentc359782ae6441bba2fad2b6d53bcbcd5a8be7057 (diff)
downloademacs-63f4f02aa78e6b48f7ee346d31a813ca0978651e.tar.gz
emacs-63f4f02aa78e6b48f7ee346d31a813ca0978651e.zip
If requested, use external image converters for exotic formats
* doc/lispref/display.texi (Defining Images): Document it. * lisp/image.el (convert-images-externally): New variable. (image-type): Use it. (create-image): Convert images. * lisp/image/image-converter.el (image-converter--convert): New file.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/display.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index fd6820897f3..ec288b1c47d 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -6044,6 +6044,13 @@ properties---for example,
6044(create-image "foo.xpm" 'xpm nil :heuristic-mask t) 6044(create-image "foo.xpm" 'xpm nil :heuristic-mask t)
6045@end example 6045@end example
6046 6046
6047@vindex convert-images-externally
6048If Emacs doesn't have native support for the image format in question,
6049and @code{convert-images-externally} is non-@code{nil}, Emacs will try
6050to determine whether there are external utilities that can be used to
6051transform the image in question to @acronym{PNG} before displaying.
6052GraphicsMagick, ImageMagick and ffmpeg are currently supported.
6053
6047The function returns @code{nil} if images of this type are not 6054The function returns @code{nil} if images of this type are not
6048supported. Otherwise it returns an image descriptor. 6055supported. Otherwise it returns an image descriptor.
6049@end defun 6056@end defun