emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

:max-width/:max-height


From: Lars Magne Ingebrigtsen
Subject: :max-width/:max-height
Date: Fri, 21 Jun 2013 09:40:26 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

It was probably lost in that long bickering thread about whether
lookup_image pushed stuff over X or not, but I realised that the
interface shr needs is :max-width and :max-height on images.

And I think that's the common use case, actually.  When displaying
images in Emacs, we seldom want to display images that are bigger than
the frame, because Emacs doesn't really deal with that situation
ideally.

The other advantages is that it allows us to decode the image only once,
and we don't have to cache the representation of the huge pre-scaled
image, which we won't need anyway.

So it's a win both speed-wise (hugely over X) and interface wise, I
think.

If this is acceptable, I'll whip up a patch to implement it.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]