aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-06 20:20:16 -0800
committerGlenn Morris2012-02-06 20:20:16 -0800
commite80e18250175382ecb6233ec0184c75ffb776a3c (patch)
tree97bf8e394ce8529c85711deddf911973a0fa17d6
parentdd605cc4a63834731b278c92ac9719c8a67492ea (diff)
downloademacs-e80e18250175382ecb6233ec0184c75ffb776a3c.tar.gz
emacs-e80e18250175382ecb6233ec0184c75ffb776a3c.zip
* doc/lispref/display.texi (ImageMagick Images): General update.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/display.texi51
2 files changed, 39 insertions, 14 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 163ab80e8b8..1a7c71232c6 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,6 +1,6 @@
12012-02-07 Glenn Morris <rgm@gnu.org> 12012-02-07 Glenn Morris <rgm@gnu.org>
2 2
3 * display.texi (ImageMagick Images): 3 * display.texi (ImageMagick Images): General update.
4 Move most details of imagemagick-render-type to the variable's doc. 4 Move most details of imagemagick-render-type to the variable's doc.
5 5
62012-02-06 Glenn Morris <rgm@gnu.org> 62012-02-06 Glenn Morris <rgm@gnu.org>
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index e1b2f57e507..99eb996a773 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4527,21 +4527,45 @@ specifying the bounding box of the PostScript image, analogous to the
4527support, you can use the ImageMagick library to load many image formats. 4527support, you can use the ImageMagick library to load many image formats.
4528 4528
4529@findex imagemagick-types 4529@findex imagemagick-types
4530@findex imagemagick-register-types
4530The function @code{imagemagick-types} returns a list of image file 4531The function @code{imagemagick-types} returns a list of image file
4531extensions that your installation of ImageMagick supports. To enable 4532extensions that your installation of ImageMagick supports. To enable
4532support, you must call the function @code{imagemagick-register-types}. 4533support, you must call the function @code{imagemagick-register-types}.
4534This enables Emacs to visit these file types in @code{image-mode}
4535(@pxref{File Conveniences,,, emacs, The GNU Emacs Manual}).
4536If your Emacs was not compiled with ImageMagick support, then
4537@code{imagemagick-types} will be undefined and
4538@code{imagemagick-register-types} will do nothing.
4533 4539
4534@vindex imagemagick-types-inhibit 4540@vindex imagemagick-types-inhibit
4535The variable @code{imagemagick-types-inhibit} specifies a list of 4541The variable @code{imagemagick-types-inhibit} specifies a list of
4536image types that you do @emph{not} want ImageMagick to handle. There 4542image types that you do @emph{not} want ImageMagick to handle. It is
4537may be overlap between image loaders in your Emacs installation, and 4543a list of symbols, each of which has the same name as one of the
4538you may prefer to use a different one for a given image type (which 4544format tags used internally by ImageMagick (i.e., as
4539@c FIXME how is this priority determined? 4545@code{imagemagick-types} returns). ImageMagick has a very broad
4540loader will be used in practice depends on the priority of the loaders). 4546definition of what an image is, for example it includes such file
4541@c FIXME why are these uppercase when image-types is lower-case? 4547types as C files and HTML files. It is not appropriate to treat these
4542@c FIXME what are the possible options? Are these actually file extensions? 4548as images in Emacs. You can add any other ImageMagick type that you
4543For example, if you never want to use the ImageMagick loader to use 4549wish to this list.
4544JPEG files, add @code{JPG} to this list. 4550@ignore
4551@c I don't know what this means. I suspect it means eg loading jpg
4552@c images via libjpeg or ImageMagick. But it doesn't work.
4553@c If you don't have libjpeg support compiled in, you cannot
4554@c view jpeg images, even if you have imagemagick support:
4555@c http://debbugs.gnu.org/9045
4556@c And if you have both compiled in, then you always get
4557@c the libjpeg version:
4558@c http://debbugs.gnu.org/10746
4559There may be overlap between image loaders in your Emacs installation,
4560and you may prefer to use a different one for a given image type
4561(which loader will be used in practice depends on the priority of the
4562loaders).
4563@end ignore
4564For example, if you never want to use the ImageMagick loader to view
4565JPEG files, add @code{JPG} to this list. Note that ImageMagick often
4566distinguishes between several different types of a particular format
4567(e.g., @code{JPG}, @code{JPEG}, @code{PJPEG}, etc.), and you may need
4568to add all versions to this list.
4545 4569
4546@c Not sure this should even be in the manual at all. 4570@c Not sure this should even be in the manual at all.
4547@vindex imagemagick-render-type 4571@vindex imagemagick-render-type
@@ -4561,10 +4585,11 @@ aspect ratio may not be preserved.
4561Specifies a rotation angle in degrees. 4585Specifies a rotation angle in degrees.
4562 4586
4563@item :index 4587@item :index
4564Specifies which image to view inside an image bundle file format, such 4588@c Doesn't work: http://debbugs.gnu.org/7978
4565as TIFF or DJVM. You can use the @code{image-metadata} function to 4589This has the same meaning as it does for GIF images (@pxref{GIF Images}),
4566retrieve the total number of images in an image bundle (this is 4590i.e. it specifies which image to view inside an image bundle file format
4567similar to how GIF files work). 4591such as DJVM. You can use the @code{image-metadata} function to
4592retrieve the total number of images in an image bundle.
4568@end table 4593@end table
4569 4594
4570 4595