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: Re: :max-width/:max-height Date: Fri, 21 Jun 2013 12:08:40 +0200 Message-ID: References: <837ghnokij.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371809342 9781 80.91.229.3 (21 Jun 2013 10:09:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 10:09:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 12:09:03 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 1UpyH8-0003vn-Dl for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 12:09:02 +0200 Original-Received: from localhost ([::1]:59631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyH7-0000Mo-HU for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 06:09:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyH2-0000Mh-3l for emacs-devel@gnu.org; Fri, 21 Jun 2013 06:08:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpyGz-0005wG-I2 for emacs-devel@gnu.org; Fri, 21 Jun 2013 06:08:56 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpyGz-0005w7-CE; Fri, 21 Jun 2013 06:08:53 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UpyGm-0004DQ-J0; Fri, 21 Jun 2013 12:08:40 +0200 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== X-Now-Playing: Jonas Kullhammar Quartet's _The Half Naked Truth 1998-2008 (1)_: "For X" X-Hashcash: 1:23:130621:eliz@gnu.org::NqeC4VR0LGtUWt62:000006LE1 X-Hashcash: 1:23:130621:emacs-devel@gnu.org::kn8t3Lf05s1FMGFi:000000000000000000000000000000000000000000J33f In-Reply-To: <837ghnokij.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Jun 2013 12:55:48 +0300") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1UpyGm-0004DQ-J0 MailScanner-NULL-Check: 1372414122.36587@vJcABWriMU1P7K6sF25EMQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:160817 Archived-At: 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. > I wouldn't recommend assuming that Emacs doesn't deal well with large > images. Changes committed lately already make it deal much better > with vertical scrolling, and doing the same for horizontal scrolling > should be easy. You've made it much better lately, but it's still awkward. However, that's not the main point. When you ask Emacs to display an image, you usually don't want to see a section of the image -- you want to see the entire thing. This is what Firefox does, for instance, if you ask it to display a single image that is too large for its window. shr has functions for zooming in the scaled image afterwards, if you really want to see the details, of course. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/