From 4b3f44fc97d3cb29fceb47ec5ba16009b6de7152 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 5 Aug 2020 15:02:28 +0200 Subject: [PATCH] Fix max-width/height for Message screenshots * lisp/gnus/message.el (message-insert-screenshot): :max-width/height apparently has to be integers. --- lisp/gnus/message.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 378c3b04673..cf2b8eebc30 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -8693,8 +8693,8 @@ used to take the screenshot." (set-mark (point)) (insert-image (create-image image 'png t - :max-width (* (frame-pixel-width) 0.8) - :max-height (* (frame-pixel-height) 0.8) + :max-width (truncate (* (frame-pixel-width) 0.8)) + :max-height (truncate (* (frame-pixel-height) 0.8)) :scale 1) (format "<#part type=\"image/png\" disposition=inline content-transfer-encoding=base64 raw=t>\n%s\n<#/part>" ;; Get a base64 version of the image -- this avoids later -- 2.39.2