From 556feab8a0ec95953723cff6aacfeaf795d9242f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 11 Apr 2018 19:31:37 +0200 Subject: [PATCH] Always rescale images in gnus-rescale-image * lisp/gnus/gnus-util.el (gnus-rescale-image): Rescale images even if we don't have a visible article buffer. Reported and fix suggested by Kevin Brubeck Unhammer. --- lisp/gnus/gnus-util.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 932ae5b5411..1001d11df4f 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1615,8 +1615,7 @@ empty directories from OLD-PATH." "Rescale IMAGE to SIZE if possible. SIZE is in format (WIDTH . HEIGHT). Return a new image. Sizes are in pixels." - (if (or (not (fboundp 'imagemagick-types)) - (not (get-buffer-window (current-buffer)))) + (if (not (fboundp 'imagemagick-types)) image (let ((new-width (car size)) (new-height (cdr size))) -- 2.39.5