diff options
| author | Glenn Morris | 2012-02-06 20:20:16 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-06 20:20:16 -0800 |
| commit | e80e18250175382ecb6233ec0184c75ffb776a3c (patch) | |
| tree | 97bf8e394ce8529c85711deddf911973a0fa17d6 | |
| parent | dd605cc4a63834731b278c92ac9719c8a67492ea (diff) | |
| download | emacs-e80e18250175382ecb6233ec0184c75ffb776a3c.tar.gz emacs-e80e18250175382ecb6233ec0184c75ffb776a3c.zip | |
* doc/lispref/display.texi (ImageMagick Images): General update.
| -rw-r--r-- | doc/lispref/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 51 |
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 @@ | |||
| 1 | 2012-02-07 Glenn Morris <rgm@gnu.org> | 1 | 2012-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 | ||
| 6 | 2012-02-06 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | |||
| 4527 | support, you can use the ImageMagick library to load many image formats. | 4527 | support, 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 | ||
| 4530 | The function @code{imagemagick-types} returns a list of image file | 4531 | The function @code{imagemagick-types} returns a list of image file |
| 4531 | extensions that your installation of ImageMagick supports. To enable | 4532 | extensions that your installation of ImageMagick supports. To enable |
| 4532 | support, you must call the function @code{imagemagick-register-types}. | 4533 | support, you must call the function @code{imagemagick-register-types}. |
| 4534 | This enables Emacs to visit these file types in @code{image-mode} | ||
| 4535 | (@pxref{File Conveniences,,, emacs, The GNU Emacs Manual}). | ||
| 4536 | If 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 |
| 4535 | The variable @code{imagemagick-types-inhibit} specifies a list of | 4541 | The variable @code{imagemagick-types-inhibit} specifies a list of |
| 4536 | image types that you do @emph{not} want ImageMagick to handle. There | 4542 | image types that you do @emph{not} want ImageMagick to handle. It is |
| 4537 | may be overlap between image loaders in your Emacs installation, and | 4543 | a list of symbols, each of which has the same name as one of the |
| 4538 | you may prefer to use a different one for a given image type (which | 4544 | format 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 |
| 4540 | loader will be used in practice depends on the priority of the loaders). | 4546 | definition of what an image is, for example it includes such file |
| 4541 | @c FIXME why are these uppercase when image-types is lower-case? | 4547 | types 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? | 4548 | as images in Emacs. You can add any other ImageMagick type that you |
| 4543 | For example, if you never want to use the ImageMagick loader to use | 4549 | wish to this list. |
| 4544 | JPEG 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 | ||
| 4559 | There may be overlap between image loaders in your Emacs installation, | ||
| 4560 | and 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 | ||
| 4562 | loaders). | ||
| 4563 | @end ignore | ||
| 4564 | For example, if you never want to use the ImageMagick loader to view | ||
| 4565 | JPEG files, add @code{JPG} to this list. Note that ImageMagick often | ||
| 4566 | distinguishes between several different types of a particular format | ||
| 4567 | (e.g., @code{JPG}, @code{JPEG}, @code{PJPEG}, etc.), and you may need | ||
| 4568 | to 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. | |||
| 4561 | Specifies a rotation angle in degrees. | 4585 | Specifies a rotation angle in degrees. |
| 4562 | 4586 | ||
| 4563 | @item :index | 4587 | @item :index |
| 4564 | Specifies which image to view inside an image bundle file format, such | 4588 | @c Doesn't work: http://debbugs.gnu.org/7978 |
| 4565 | as TIFF or DJVM. You can use the @code{image-metadata} function to | 4589 | This has the same meaning as it does for GIF images (@pxref{GIF Images}), |
| 4566 | retrieve the total number of images in an image bundle (this is | 4590 | i.e. it specifies which image to view inside an image bundle file format |
| 4567 | similar to how GIF files work). | 4591 | such as DJVM. You can use the @code{image-metadata} function to |
| 4592 | retrieve the total number of images in an image bundle. | ||
| 4568 | @end table | 4593 | @end table |
| 4569 | 4594 | ||
| 4570 | 4595 | ||