diff options
| author | Lars Ingebrigtsen | 2019-10-29 21:42:33 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-29 21:42:39 +0100 |
| commit | 19c98f762092adab01bf35d4b0c958af7d4ea59e (patch) | |
| tree | 7740857748d7b0d916593181762f26db1719e62d /etc | |
| parent | 1997e3b80f1046d789c4120d50e0f1dde05e7a74 (diff) | |
| download | emacs-19c98f762092adab01bf35d4b0c958af7d4ea59e.tar.gz emacs-19c98f762092adab01bf35d4b0c958af7d4ea59e.zip | |
Default exotic image formats (like .webp) to image-mode
* doc/lispref/errors.texi (Standard Errors): Mention the new error.
* lisp/files.el (auto-mode-alist): Add a bunch of image suffixes
to the list (bug#37972) based on the output from "gm convert -list
format" (i.e., graphicsmagick).
* lisp/image-mode.el (image-mode): Rewrite to possibly notify the
user about image-use-external-converter.
(image-mode--setup-mode): Factor out into own function and don't
run under `condition-case' as there's nothing here that should
error.
* lisp/image.el (unknown-image-type): New error.
(image-type): Signal that error so that image-mode can offer
sensible feedback to the user.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -2933,6 +2933,9 @@ data about creation times and orientation and the like. | |||
| 2933 | 'exif-parse-file' and 'exif-parse-buffer' are the main interface | 2933 | 'exif-parse-file' and 'exif-parse-buffer' are the main interface |
| 2934 | functions. | 2934 | functions. |
| 2935 | 2935 | ||
| 2936 | *** 'image-mode' now uses this library to automatically rotate images | ||
| 2937 | according to the orientation in the Exif data, if any. | ||
| 2938 | |||
| 2936 | *** New library image-converter. | 2939 | *** New library image-converter. |
| 2937 | If you need to view exotic image formats for which Emacs doesn't have | 2940 | If you need to view exotic image formats for which Emacs doesn't have |
| 2938 | native support, customize the new user option | 2941 | native support, customize the new user option |
| @@ -2940,8 +2943,9 @@ native support, customize the new user option | |||
| 2940 | GraphicsMagick, ImageMagick or 'ffmpeg' installed, they will then be | 2943 | GraphicsMagick, ImageMagick or 'ffmpeg' installed, they will then be |
| 2941 | used to convert images automatically before displaying them. | 2944 | used to convert images automatically before displaying them. |
| 2942 | 2945 | ||
| 2943 | *** 'image-mode' now uses this library to automatically rotate images | 2946 | *** 'auto-mode-alist' now includes many of the types typically |
| 2944 | according to the orientation in the Exif data, if any. | 2947 | supported by the external image converters, like WEPB, BMP and ICO. |
| 2948 | These now default to using 'image-mode'. | ||
| 2945 | 2949 | ||
| 2946 | *** 'imagemagick-types-inhibit' disables using ImageMagick by default. | 2950 | *** 'imagemagick-types-inhibit' disables using ImageMagick by default. |
| 2947 | 'image-mode' started using ImageMagick by default for all images | 2951 | 'image-mode' started using ImageMagick by default for all images |