From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22172: 25.1.50; Wishlist: There should be a way to say to Emacs that is should rescale all images with a certain factor Date: Mon, 08 Feb 2016 17:42:19 +1100 Message-ID: <87bn7rya7o.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454913807 17598 80.91.229.3 (8 Feb 2016 06:43:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 06:43:27 +0000 (UTC) Cc: 22172@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 07:43:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aSfXW-00061i-E0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 07:43:14 +0100 Original-Received: from localhost ([::1]:41840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSfXV-0002da-Hn for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 01:43:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSfXO-0002cU-ON for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 01:43:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSfXK-00057r-Tw for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 01:43:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSfXK-00057n-QP for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 01:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aSfXK-000797-GT for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2016 01:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Feb 2016 06:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22172 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22172-submit@debbugs.gnu.org id=B22172.145491377727459 (code B ref 22172); Mon, 08 Feb 2016 06:43:02 +0000 Original-Received: (at 22172) by debbugs.gnu.org; 8 Feb 2016 06:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:37898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSfXB-00078l-Go for submit@debbugs.gnu.org; Mon, 08 Feb 2016 01:42:57 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56538) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSfX6-00078Z-Cz for 22172@debbugs.gnu.org; Mon, 08 Feb 2016 01:42:52 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aSfWh-0004Mu-Gj; Mon, 08 Feb 2016 07:42:24 +0100 In-Reply-To: (John Wiegley's message of "Mon, 14 Dec 2015 15:09:01 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aSfWh-0004Mu-Gj MailScanner-NULL-Check: 1455518544.34515@OkiK0dwes1jl0cC/3G247g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112694 Archived-At: John Wiegley writes: >>>>>> Lars Magne Ingebrigtsen writes: > >> There should be a way to say to Emacs, like there is in Firefox, that every >> pixel in images should be rendered at, say, 2x. (If possible.) > > +1, except that I'd also like it to be buffer local. For Gnus, where it show > graphical logos for individual with pixmaps, I'd like to use 0.5x. Sure, it would also work buffer-locally... I've now started implementing this. I guess if an image is 500 pixels wide, and you've specified a scaling factor of 2, and :max-width is 800 pixels, then you should end up with an image that's 800 pixels wide? I think that makes most sense. So the computation of this goes into the compute_image_size function, and there's a new parameter :scale to `create-image' that takes a number. And the new variable is called image-scaling-factor. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no