From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images. Date: Tue, 14 Feb 2012 12:43:12 -0500 Message-ID: References: <874nuuwlib.fsf@gnus.org> <4F3972C3.2010209@cs.ucla.edu> <8762fawk1t.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329241422 4242 80.91.229.3 (14 Feb 2012 17:43:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 17:43:42 +0000 (UTC) Cc: Katsumi Yamaoka , Paul Eggert , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 18:43:40 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxMPk-0003SE-8t for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2012 18:43:40 +0100 Original-Received: from localhost ([::1]:55152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxMPj-0002ED-PR for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2012 12:43:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxMPb-0002Dk-TR for emacs-devel@gnu.org; Tue, 14 Feb 2012 12:43:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxMPW-0003a1-Aj for emacs-devel@gnu.org; Tue, 14 Feb 2012 12:43:31 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxMPW-0003Zk-5n for emacs-devel@gnu.org; Tue, 14 Feb 2012 12:43:26 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q1EHhCsZ018414; Tue, 14 Feb 2012 12:43:12 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8D5C91300C9; Tue, 14 Feb 2012 12:43:12 -0500 (EST) In-Reply-To: <8762fawk1t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 13 Feb 2012 21:33:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4132=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4132> : streams <728616> : uri <1065340> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:148610 Archived-At: > Right. But the default value of 6.0 disallows a lot of real-world > images. (9gag in particular.) Perhaps binding it to, say, 60.0 in > shr.el would make sense? For a full-screen frame on a modern display, we're talking 2M pixels for the frame, so you're suggesting to place the limit at 60x60x2M = 7G pixels... I'm afraid that's clearly in the "crash&|DoS" zone. Maybe the limit should be expressed in megabytes or in total number of pixels (rather than in only one dimension) and relative to the screen size rather than the frame size. Stefan