diff options
| author | Lars Magne Ingebrigtsen | 2013-06-23 21:24:27 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2013-06-23 21:24:27 +0200 |
| commit | f3f9606c7acb4b3248dbe6f9fe16db6d5e46c3af (patch) | |
| tree | c96757e2023bc5b30e6ba77f58478cefcabd9ac7 /doc | |
| parent | e854cfc719363ccee23beaa7d0f79aab65d82a98 (diff) | |
| download | emacs-f3f9606c7acb4b3248dbe6f9fe16db6d5e46c3af.tar.gz emacs-f3f9606c7acb4b3248dbe6f9fe16db6d5e46c3af.zip | |
Implement :max-width/:max-height for (ImageMagic) images
* doc/lispref/display.texi (ImageMagick Images): Mention :max-width and
:max-height.
* lisp/net/shr.el (shr-rescale-image): Use the new
:max-width/:max-height functionality.
* src/image.c (compute_image_size): New function to implement
:max-width and :max-height.
(imagemagick_load_image): Use it.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c00d3392908..e95010a11a9 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-23 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * display.texi (ImageMagick Images): Mention :max-width and | ||
| 4 | :max-height. | ||
| 5 | |||
| 1 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * numbers.texi (Math Functions): Remove obsolete function log10. | 8 | * numbers.texi (Math Functions): Remove obsolete function log10. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 34eda6ecd6f..d82b9a4c5a2 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -4653,6 +4653,15 @@ image. If only one of them is specified, the other one will be | |||
| 4653 | calculated so as to preserve the aspect ratio. If both are specified, | 4653 | calculated so as to preserve the aspect ratio. If both are specified, |
| 4654 | aspect ratio may not be preserved. | 4654 | aspect ratio may not be preserved. |
| 4655 | 4655 | ||
| 4656 | @item :max-width, :max-height | ||
| 4657 | The @code{:max-width} and @code{:max-height} keywords are used for | ||
| 4658 | scaling if the size of the image of the image exceeds these values. | ||
| 4659 | If @code{:width} is set it will have presedence over @code{max-width}, | ||
| 4660 | and if @code{:height} is set it will have presedence over | ||
| 4661 | @code{max-height}, but you can otherwise mix these keywords as you | ||
| 4662 | wish. @code{:max-width} and @code{:max-height} will always preserve | ||
| 4663 | the aspec ratio. | ||
| 4664 | |||
| 4656 | @item :rotation | 4665 | @item :rotation |
| 4657 | Specifies a rotation angle in degrees. | 4666 | Specifies a rotation angle in degrees. |
| 4658 | 4667 | ||