shr.el (shr-rescale-image): Allow viewing large images.
This commit is contained in:
parent
4eff9c1abb
commit
9554f4ac2f
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue