aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2013-06-23 21:24:27 +0200
committerLars Magne Ingebrigtsen2013-06-23 21:24:27 +0200
commitf3f9606c7acb4b3248dbe6f9fe16db6d5e46c3af (patch)
treec96757e2023bc5b30e6ba77f58478cefcabd9ac7 /doc
parente854cfc719363ccee23beaa7d0f79aab65d82a98 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--doc/lispref/display.texi9
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 @@
12013-06-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * display.texi (ImageMagick Images): Mention :max-width and
4 :max-height.
5
12013-06-20 Paul Eggert <eggert@cs.ucla.edu> 62013-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
4653calculated so as to preserve the aspect ratio. If both are specified, 4653calculated so as to preserve the aspect ratio. If both are specified,
4654aspect ratio may not be preserved. 4654aspect ratio may not be preserved.
4655 4655
4656@item :max-width, :max-height
4657The @code{:max-width} and @code{:max-height} keywords are used for
4658scaling if the size of the image of the image exceeds these values.
4659If @code{:width} is set it will have presedence over @code{max-width},
4660and if @code{:height} is set it will have presedence over
4661@code{max-height}, but you can otherwise mix these keywords as you
4662wish. @code{:max-width} and @code{:max-height} will always preserve
4663the aspec ratio.
4664
4656@item :rotation 4665@item :rotation
4657Specifies a rotation angle in degrees. 4666Specifies a rotation angle in degrees.
4658 4667