aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-09-08 19:18:38 -0700
committerGlenn Morris2010-09-08 19:18:38 -0700
commitca0d44e4ec07c8df4fb6aacabed86eeed8816733 (patch)
treed04bf36adc5842534e9b40d83d51441fabfdbf28
parentc046871400aea710c258217d1e1bae4814357216 (diff)
downloademacs-ca0d44e4ec07c8df4fb6aacabed86eeed8816733.tar.gz
emacs-ca0d44e4ec07c8df4fb6aacabed86eeed8816733.zip
* doc/lispref/display.texi (ImageMagick Images): General cleanup.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/display.texi89
2 files changed, 53 insertions, 40 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 5534283ccd1..6caa46b9ae1 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12010-09-09 Glenn Morris <rgm@gnu.org>
2
3 * display.texi (ImageMagick Images): General cleanup.
4
12010-09-06 Alexander Klimov <alserkli@inbox.ru> (tiny change) 52010-09-06 Alexander Klimov <alserkli@inbox.ru> (tiny change)
2 6
3 * files.texi (Directory Names): Use \` rather than ^. 7 * files.texi (Directory Names): Use \` rather than ^.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index a565b4dd6ff..037c334ab88 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4468,47 +4468,56 @@ specifying the bounding box of the PostScript image, analogous to the
4468 4468
4469@node ImageMagick Images 4469@node ImageMagick Images
4470@subsection ImageMagick Images 4470@subsection ImageMagick Images
4471The Imagemagick library can be used to load many image formats in Emacs. 4471@cindex ImageMagick images
4472@cindex images, support for more formats
4473
4474 If you build Emacs with ImageMagick (@url{http://www.imagemagick.org})
4475support, you can use the ImageMagick library to load many image formats.
4476
4477@findex imagemagick-types
4478The function @code{imagemagick-types} returns a list of image file
4479extensions that your installation of ImageMagick supports. To enable
4480support, you must call the function @code{imagemagick-register-types}.
4481
4482@vindex imagemagick-types-inhibit
4483The variable @code{imagemagick-types-inhibit} specifies a list of
4484image types that you do @emph{not} want ImageMagick to handle. There
4485may be overlap between image loaders in your Emacs installation, and
4486you may prefer to use a different one for a given image type (which
4487@c FIXME how is this priority determined?
4488loader will be used in practice depends on the priority of the loaders).
4489@c FIXME why are these uppercase when image-types is lower-case?
4490@c FIXME what are the possibe options? Are these actually file extensions?
4491For example, if you never want to use the ImageMagick loader to use
4492JPEG files, add @code{JPG} to this list.
4493
4494@vindex imagemagick-render-type
4495You can set the variable @code{imagemagick-render-type} to choose
4496between screen render methods for the ImageMagick loader. The options
4497are: @code{0}, a conservative method which works with older
4498@c FIXME details of this "newer method"?
4499@c Presumably it is faster but may be less "robust"?
4500ImageMagick versions (it is a bit slow, but robust); and @code{1},
4501a newer ImageMagick method.
4502
4503Images loaded with ImageMagick support a few new display specifications:
4472 4504
4473The function (imagemagick-types) returns a list of image file 4505@table @code
4474extensions that your installation of imagemagick supports. 4506@item :width, :height
4475 4507The @code{:width} and @code{:height} keywords are used for scaling the
4476The function (imagemagick-register-types) will enable the imagemagick 4508image. If only one of them is specified, the other one will be
4477support for the extensions in imagemagick-types minus the types listed 4509calculated so as to preserve the aspect ratio. If both are specified,
4478in imagemagick-types-inhibit. 4510aspect ratio may not be preserved.
4479 4511
4480imagemagick-types-inhibit has the value '(C HTML HTM TXT PDF) by 4512@item :rotation
4481default. There can be overlap between image loaders in your Emacs 4513Specifies a rotation angle in degrees.
4482installation. If you never want to use the ImageMagick loader to use 4514
4483Jpeg files, for instance, add 'JPG to imagemagick-types-inhibit. Which 4515@item :index
4484loader that will be used in practice depends on the priority of the 4516Specifies which image to view inside an image bundle file format, such
4485loaders. 4517as TIFF or DJVM. You can use the @code{image-metadata} function to
4486 4518retrieve the total number of images in an image bundle (this is
4487imagemagick-render-type is a new variable which can be set to choose 4519similar to how GIF files work).
4488between screen render methods for the ImageMagick loader. 4520@end table
4489
4490- 0 is a conservative metod which works with older ImageMagick
4491 versions. It is a bit slow, but robust.
4492
4493- 1 utilizes a newer ImageMagick method
4494
4495
4496Images loaded with imagemagick will support a couple of new display
4497specification behaviours:
4498
4499- if the :width and :height keywords are specified, these values are
4500used for scaling the image. If only one of :width or :height is
4501specified, the other one will be calculated so as to preserve the
4502aspect ratio.If both :width and :height are specified, aspect ratio
4503will not be preserved.
4504
4505- :rotation specifies a rotation angle in degrees.
4506
4507- :index specifies which image inside an image bundle file format, such
4508as TIFF or DJVM, to view.
4509
4510The image-metadata function can be used to retrieve the total number
4511of images in an image bundle. This is simmilar to how GIF files work.
4512 4521
4513 4522
4514@node Other Image Types 4523@node Other Image Types