* shr.el (shr-rescale-image): Allow viewing large images.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Feb 2012 02:43:01 +0000 (03:43 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Feb 2012 02:43:01 +0000 (03:43 +0100)
lisp/ChangeLog
lisp/shr.el

index 761184e..6341fed 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-13  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-rescale-image): Allow viewing large images.
+
 2012-02-12  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * nnml.el (nnml-request-compact-group): Delete the marks file after
index a8bbc77..a2baa85 100644 (file)
@@ -557,7 +557,8 @@ the URL of the image to the kill buffer instead."
     (insert alt)))
 
 (defun shr-rescale-image (data)
-  (let ((image (create-image data nil t :ascent 100)))
+  (let* ((max-image-size 0)
+        (image (create-image data nil t :ascent 100)))
     (if (or (not (fboundp 'imagemagick-types))
            (not (get-buffer-window (current-buffer))))
        image