From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: image scaling Date: Thu, 21 Feb 2008 11:06:24 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203588937 17590 80.91.229.12 (21 Feb 2008 10:15:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 10:15:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 11:16:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JS8Sz-0001sg-Hg for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 11:15:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS8SU-00026p-B7 for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 05:15:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JS8M1-0004Ue-HN for emacs-devel@gnu.org; Thu, 21 Feb 2008 05:08:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JS8M0-0004Ru-2t for emacs-devel@gnu.org; Thu, 21 Feb 2008 05:08:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS8Lx-0004R3-Mq for emacs-devel@gnu.org; Thu, 21 Feb 2008 05:08:34 -0500 Original-Received: from iwfs.imcode.com ([82.115.149.64] helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JS8Lx-0007EF-6t for emacs-devel@gnu.org; Thu, 21 Feb 2008 05:08:33 -0500 Original-Received: from chopper (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id m1LA8TeA010039; Thu, 21 Feb 2008 11:08:29 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 20 Feb 2008 23:21:05 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89807 Archived-At: Stefan Monnier writes: > Looking at the Elisp manual's "38.16.2 Image Descriptors", it seems that > we do not support image scaling. > I'd like to add such a feature to image-mode.el, but am wondering how we > should go about doing it. Would there be some advantage to provide it > at the C level (e.g. if some of the image libs we use already provide > the necessary functionality) or should we just bite the bullet and call > some external tool like "convert -scale ..." (with the disadvantage that > flushing the image cache will not automatically cause the image to be > re-scaled). I've looked at this briefly while preparing the SVG patch for inclusion. I think it would be apropriate to do this at the C level, but what would the Lisp level interface look like? > > > Stefan > -- Joakim Verona