Subject: Re: bug#25287: 25.1; [WISH] shr-rescale-image: pass window size externally

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 28 Dec 2016 18:13:23 +0100

(Please keep Cc's.)

Christophe Troestler <[email-masked]> writes:

> On 2016-12-28, Lars Ingebrigtsen wrote:
>>
>> What's the use case?
>
> mu4e <https://github.com/djcb/mu> allows to specify a function to
> render a temporary buffer containing the HTML source.  I use shr for
> that (with a specific function for cid:// links) and it works well
> except that images are not rescaled properly.  Having a way to pass to
> shr the final frame size would allow to trigger image resizing
> (without having to rewrite shr-put-image and shr-rescale-image).

So mu4e would pass in this size?  Couldn't mu4e just switch to the
correct buffer first and then the scaling would work automatically?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no