From 6935c9290278e8b14f518df6de883ca81930e439 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 12 Mar 2024 15:19:33 +0100 Subject: scale full size image to window-width. FIX #542. --- lisp/mastodon-media.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/mastodon-media.el') diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el index ff40633..eaa9718 100644 --- a/lisp/mastodon-media.el +++ b/lisp/mastodon-media.el @@ -196,7 +196,7 @@ IMAGE-OPTIONS are the precomputed options to apply to the image." (if (version< emacs-version "27.1") (when image-options 'imagemagick) nil) ; inbuilt scaling in 27.1 - t nil)))) + t `(:max-width ,(window-pixel-width)))))) (when mastodon-media--enable-image-caching (unless (url-is-cached url) ;; cache if not already cached (url-store-in-cache url-buffer))) -- cgit v1.2.3