diff options
| author | Lars Ingebrigtsen | 2019-09-29 01:26:02 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-29 01:26:12 +0200 |
| commit | 63f4f02aa78e6b48f7ee346d31a813ca0978651e (patch) | |
| tree | e6b5ffc22538c804ad2dc597eb2e9458385900c4 /doc | |
| parent | c359782ae6441bba2fad2b6d53bcbcd5a8be7057 (diff) | |
| download | emacs-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.texi | 7 |
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 | ||
| 6048 | If Emacs doesn't have native support for the image format in question, | ||
| 6049 | and @code{convert-images-externally} is non-@code{nil}, Emacs will try | ||
| 6050 | to determine whether there are external utilities that can be used to | ||
| 6051 | transform the image in question to @acronym{PNG} before displaying. | ||
| 6052 | GraphicsMagick, ImageMagick and ffmpeg are currently supported. | ||
| 6053 | |||
| 6047 | The function returns @code{nil} if images of this type are not | 6054 | The function returns @code{nil} if images of this type are not |
| 6048 | supported. Otherwise it returns an image descriptor. | 6055 | supported. Otherwise it returns an image descriptor. |
| 6049 | @end defun | 6056 | @end defun |