From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: image scaling Date: Thu, 21 Feb 2008 09:42:23 +0100 Message-ID: <7dbe73ed0802210042s5691ace5w9a69a3d0a847b7f0@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203583360 30673 80.91.229.12 (21 Feb 2008 08:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 08:42:40 +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 09:43:04 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 1JS71D-0006BT-Lw for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 09:43:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS70i-0004bD-JK for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 03:42:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JS70e-0004b8-Kf for emacs-devel@gnu.org; Thu, 21 Feb 2008 03:42:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JS70c-0004aw-FN for emacs-devel@gnu.org; Thu, 21 Feb 2008 03:42:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS70c-0004at-A9 for emacs-devel@gnu.org; Thu, 21 Feb 2008 03:42:26 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JS70c-0001Xc-9R for emacs-devel@gnu.org; Thu, 21 Feb 2008 03:42:26 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.181]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JS70b-00023C-5K for emacs-devel@gnu.org; Thu, 21 Feb 2008 03:42:25 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so4684914wah.10 for ; Thu, 21 Feb 2008 00:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Yh0mUuA+sO2YQ7xN9wzjY6RDkR6keFX/SoXgY6nS9h0=; b=ArnL5COcglxPf9UG6u6qJzuyJyvOKrfIX8hTBWSM4X3sdqkt2K5Tkv+2vRYJZ79bMiUke12qFr5TBxzHn0asSwFE8aAcB8qONgmT5569d3BrDlY0zYccOFcS90r0TVzKI9/0VmxqObx/PdLEP3YZEd6LDTi+gTS3X2w3TsFSi/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qvGp1Xoz1ZhsJGNIf9KjCfXtGWCyijF1Jlz0YUjxOGKK47CgYfM4gRQcHxsdae+Cun5dCUyJ/F4Z0/9h2Y0Ph929n+ZRLHECEk9XcVfngQ3qZ2BzHUKhl+uYGx+nHXqGZZ7YoRtkzv92WGxY8f6t4zjEmw70/G1V+RR1AG0yxkY= Original-Received: by 10.114.121.1 with SMTP id t1mr4810645wac.55.1203583343370; Thu, 21 Feb 2008 00:42:23 -0800 (PST) Original-Received: by 10.114.147.8 with HTTP; Thu, 21 Feb 2008 00:42:23 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:89789 Archived-At: > 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). It would be really good to have such a feature as I think it would make browsing images in image-dired's thumbnail buffer (display some large images there and use SPC and DEL to go back and forth to see what I mean) much quicker. At least I guess it would be quicker to do this natively inside Emacs than using convert to scale the image as we do now. I assume the image libraries that Emacs use support scaling in some way. When on the subject of images, it would be really neat if we had built-in EXIF (et al) support as well, although I understand if people do not think it fits well in Emacs.