unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* :max-width/:max-height
@ 2013-06-21  7:40 Lars Magne Ingebrigtsen
  2013-06-21  9:55 ` :max-width/:max-height Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-06-21  7:40 UTC (permalink / raw)
  To: emacs-devel

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/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-23 19:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21  7:40 :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21  9:55 ` :max-width/:max-height Eli Zaretskii
2013-06-21 10:08   ` :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21 10:21     ` :max-width/:max-height Eli Zaretskii
2013-06-21 10:29       ` :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21 10:47         ` :max-width/:max-height Eli Zaretskii
2013-06-23 19:26           ` :max-width/:max-height Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).