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: imagemagic in image-mode and image-dired-thumbnail-mode? Date: Tue, 16 Jul 2013 17:26:45 -0400 Message-ID: References: <87a9lp8uxk.fsf@gmail.com> <87ppuk6qqb.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374010017 19584 80.91.229.3 (16 Jul 2013 21:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 21:26:57 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 23:26:57 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 1UzClt-0000Ue-7E for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 23:26:57 +0200 Original-Received: from localhost ([::1]:57034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCls-0002PZ-NZ for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 17:26:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzClp-0002PG-LN for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:26:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzCln-0000Td-KT for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:26:53 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzCln-0000T8-H7 for emacs-devel@gnu.org; Tue, 16 Jul 2013 17:26:51 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r6GLQknl009806; Tue, 16 Jul 2013 17:26:46 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5C69AAE2D2; Tue, 16 Jul 2013 17:26:45 -0400 (EDT) In-Reply-To: <87ppuk6qqb.fsf@gmail.com> (Vitalie Spinu's message of "Mon, 15 Jul 2013 12:51:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4641=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4641> : streams <1001514> : uri <1478623> 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:161952 Archived-At: > So the proposal is to rewrite all those transform functions into a > consistent image transform api and move them into image.el. Then add > interactive transformation commands to image-mode.el, iimage.el, > image-dired.el, gnus etc that will rely on those. That sounds good. > Of course all the above will work only with imagemagick support. Actually, I wonder if it can't be made to work for non-imagemagick images: by operating on image-specs, it should be possible to make the code do things like "extract the filename, pass the file to `convert' and create a new image-spec for that temp file", while on imagemagick images it would just fiddle with the paramters like :height. Stefan