diff options
| author | Glenn Morris | 2010-09-08 19:18:38 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-09-08 19:18:38 -0700 |
| commit | ca0d44e4ec07c8df4fb6aacabed86eeed8816733 (patch) | |
| tree | d04bf36adc5842534e9b40d83d51441fabfdbf28 | |
| parent | c046871400aea710c258217d1e1bae4814357216 (diff) | |
| download | emacs-ca0d44e4ec07c8df4fb6aacabed86eeed8816733.tar.gz emacs-ca0d44e4ec07c8df4fb6aacabed86eeed8816733.zip | |
* doc/lispref/display.texi (ImageMagick Images): General cleanup.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 89 |
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 @@ | |||
| 1 | 2010-09-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (ImageMagick Images): General cleanup. | ||
| 4 | |||
| 1 | 2010-09-06 Alexander Klimov <alserkli@inbox.ru> (tiny change) | 5 | 2010-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 |
| 4471 | The 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}) | ||
| 4475 | support, you can use the ImageMagick library to load many image formats. | ||
| 4476 | |||
| 4477 | @findex imagemagick-types | ||
| 4478 | The function @code{imagemagick-types} returns a list of image file | ||
| 4479 | extensions that your installation of ImageMagick supports. To enable | ||
| 4480 | support, you must call the function @code{imagemagick-register-types}. | ||
| 4481 | |||
| 4482 | @vindex imagemagick-types-inhibit | ||
| 4483 | The variable @code{imagemagick-types-inhibit} specifies a list of | ||
| 4484 | image types that you do @emph{not} want ImageMagick to handle. There | ||
| 4485 | may be overlap between image loaders in your Emacs installation, and | ||
| 4486 | you may prefer to use a different one for a given image type (which | ||
| 4487 | @c FIXME how is this priority determined? | ||
| 4488 | loader 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? | ||
| 4491 | For example, if you never want to use the ImageMagick loader to use | ||
| 4492 | JPEG files, add @code{JPG} to this list. | ||
| 4493 | |||
| 4494 | @vindex imagemagick-render-type | ||
| 4495 | You can set the variable @code{imagemagick-render-type} to choose | ||
| 4496 | between screen render methods for the ImageMagick loader. The options | ||
| 4497 | are: @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"? | ||
| 4500 | ImageMagick versions (it is a bit slow, but robust); and @code{1}, | ||
| 4501 | a newer ImageMagick method. | ||
| 4502 | |||
| 4503 | Images loaded with ImageMagick support a few new display specifications: | ||
| 4472 | 4504 | ||
| 4473 | The function (imagemagick-types) returns a list of image file | 4505 | @table @code |
| 4474 | extensions that your installation of imagemagick supports. | 4506 | @item :width, :height |
| 4475 | 4507 | The @code{:width} and @code{:height} keywords are used for scaling the | |
| 4476 | The function (imagemagick-register-types) will enable the imagemagick | 4508 | image. If only one of them is specified, the other one will be |
| 4477 | support for the extensions in imagemagick-types minus the types listed | 4509 | calculated so as to preserve the aspect ratio. If both are specified, |
| 4478 | in imagemagick-types-inhibit. | 4510 | aspect ratio may not be preserved. |
| 4479 | 4511 | ||
| 4480 | imagemagick-types-inhibit has the value '(C HTML HTM TXT PDF) by | 4512 | @item :rotation |
| 4481 | default. There can be overlap between image loaders in your Emacs | 4513 | Specifies a rotation angle in degrees. |
| 4482 | installation. If you never want to use the ImageMagick loader to use | 4514 | |
| 4483 | Jpeg files, for instance, add 'JPG to imagemagick-types-inhibit. Which | 4515 | @item :index |
| 4484 | loader that will be used in practice depends on the priority of the | 4516 | Specifies which image to view inside an image bundle file format, such |
| 4485 | loaders. | 4517 | as TIFF or DJVM. You can use the @code{image-metadata} function to |
| 4486 | 4518 | retrieve the total number of images in an image bundle (this is | |
| 4487 | imagemagick-render-type is a new variable which can be set to choose | 4519 | similar to how GIF files work). |
| 4488 | between 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 | |||
| 4496 | Images loaded with imagemagick will support a couple of new display | ||
| 4497 | specification behaviours: | ||
| 4498 | |||
| 4499 | - if the :width and :height keywords are specified, these values are | ||
| 4500 | used for scaling the image. If only one of :width or :height is | ||
| 4501 | specified, the other one will be calculated so as to preserve the | ||
| 4502 | aspect ratio.If both :width and :height are specified, aspect ratio | ||
| 4503 | will 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 | ||
| 4508 | as TIFF or DJVM, to view. | ||
| 4509 | |||
| 4510 | The image-metadata function can be used to retrieve the total number | ||
| 4511 | of 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 |