From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: :max-width/:max-height Date: Fri, 21 Jun 2013 13:21:37 +0300 Message-ID: <83zjujn4r2.fsf@gnu.org> References: <837ghnokij.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371810101 17996 80.91.229.3 (21 Jun 2013 10:21:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 10:21:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 12:21:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpyTM-0004lP-1r for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 12:21:40 +0200 Original-Received: from localhost ([::1]:34967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyTL-00048d-JE for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 06:21:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyTE-00046j-JM for emacs-devel@gnu.org; Fri, 21 Jun 2013 06:21:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpyTA-0001eo-Rf for emacs-devel@gnu.org; Fri, 21 Jun 2013 06:21:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyTA-0001eQ-KC for emacs-devel@gnu.org; Fri, 21 Jun 2013 06:21:28 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MOQ00I00MYYLX00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 21 Jun 2013 13:21:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOQ00IFGNFP5RA0@a-mtaout22.012.net.il>; Fri, 21 Jun 2013 13:21:25 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160818 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Fri, 21 Jun 2013 12:08:40 +0200 > > Eli Zaretskii writes: > > >> 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. > > > > What would such an interface provide to its callers? > > I'm not sure I understand the question. It would allow scaling the > images to fit in a window without having to do the tedious computations > in the caller, and it would require decoding the image only once. Can you show a pseudo-code that would illustrate the idea?