From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: :max-width/:max-height Date: Fri, 21 Jun 2013 09:40:26 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371800443 16630 80.91.229.3 (21 Jun 2013 07:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 07:40:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 09:40:43 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 1Upvxb-0005p2-67 for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 09:40:43 +0200 Original-Received: from localhost ([::1]:34321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upvxa-0004f4-Ne for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 03:40:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpvxX-0004ei-8f for emacs-devel@gnu.org; Fri, 21 Jun 2013 03:40:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpvxV-0007aF-Q0 for emacs-devel@gnu.org; Fri, 21 Jun 2013 03:40:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpvxV-0007a9-JO for emacs-devel@gnu.org; Fri, 21 Jun 2013 03:40:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UpvxT-0005eN-6e for emacs-devel@gnu.org; Fri, 21 Jun 2013 09:40:35 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 09:40:35 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 09:40:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEWWRC3p2Nf7+fwlAgw9 DRW5eExnHh9+Lyefw+PHAAACd0lEQVQ4jZ2SwW7bMAyGWcSyrlWxtGfvCQpIda8BrMpXBZjiqwcr 1FVDbOn1R8ld1x16GQNEjj7+/EnG8P2LgP8H3cPHnfgK2H/A/fkDTA+fQLf+/CPpjuITePJX8dCV G0HRdeIdiFabs3iPY/mqgM6DlOz9ShzPFXT110HJNyH4Vp7drwLoLAk3uD2LJ0x3JLimCo7O0TlA 04tVa5LdBzwX8MgCZUnumVhjJqNvZrgr4N4W5RJvZ/EDi+Jx9Hd7qUwK1VDaRXkqcsGVOQfiKb2J o1Z+iM7NcHZuGhPqgUrhi/gh6fG2OUTnHG/mZDQI27y4m9RS+pcLdeVc8lqjhinaZRskRerBq5lN ejBv3IA9ZQ8VDMooPYYIlk2gwa39zA6yhlLc68wss3EFN/Wz28GYTq71vICtAdeisxUoxh1zDZ+b MWwcAE8WUgHPFoDyLtSUTBwiMpvaCqBGI8fTEgOEv4DkwKANMHO2gn6F5H313hU8wpWzBqTUw95s v99nUrTsAFLVdII9a0xBIc55O4ChnFtFr1euZwKJFHGh2QGGvoI1YAGRbZAXkCdKeS31+sYMBgMw O4NdQGVoxrGsXTWyp78ok0tICWLIQRtpCKyDWfWA6HWYNGiJi0T6ENAmQhNyJgGCVkoqlIrs12LN kYjXCG2RVg+5htKsxnKTqDtiZgcmZhqcdpIRy6gFlPEz0g7LriDPuYCMWnraSUj08kCbc07XCnhR DFKHZJljbSCTawtgOSkU+SEm6whkzDinWsoPBIzHUsq1mcy3di9VAO7AriHmXBWcp0+A3ppApdaq SEtfgCHAysSI814qeYOaQMtY9aB+4TfvSvVVyN0C/AAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Jonas Kullhammar Quartet's _The Half Naked Truth 1998-2008 (1)_: "For X" User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:kr0j4ycJehQGHXgv5q/GGB34v+E= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:160809 Archived-At: 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/