summaryrefslogtreecommitdiff
path: root/lisp/image.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2005-10-19 03:55:20 +0000
committerChong Yidong <cyd@stupidchicken.com>2005-10-19 03:55:20 +0000
commit8646a62e20230db0bc05c7b610e5c1ac66a62c24 (patch)
tree480b1bdaddf0f29e1575c3445572f43b8aef5a4d /lisp/image.el
parentf1f25b99665ac3e5cd4c6cf70be8fdf637f10b52 (diff)
downloademacs-8646a62e20230db0bc05c7b610e5c1ac66a62c24.tar.gz
* image.el (create-image, find-image): Mention max-image-size in
docstring.
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/image.el b/lisp/image.el
index ee188677517..f833cc7e18f 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -135,7 +135,9 @@ use its file extension as image type.
Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data.
Optional PROPS are additional image attributes to assign to the image,
like, e.g. `:mask MASK'.
-Value is the image created, or nil if images of type TYPE are not supported."
+Value is the image created, or nil if images of type TYPE are not supported.
+
+Images should not be larger than specified by `max-image-size'."
(when (and (not data-p) (not (stringp file-or-data)))
(error "Invalid image file name `%s'" file-or-data))
(cond ((null data-p)
@@ -317,7 +319,9 @@ is supported, and FILE exists, is used to construct the image
specification to be returned. Return nil if no specification is
satisfied.
-The image is looked for in `image-load-path'."
+The image is looked for in `image-load-path'.
+
+Image files should not be larger than specified by `max-image-size'."
(let (image)
(while (and specs (null image))
(let* ((spec (car specs))