From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: imagemagic in image-mode and image-dired-thumbnail-mode? Date: Fri, 19 Jul 2013 00:27:23 +0200 Organization: EUR Message-ID: <87k3knijw4.fsf@gmail.com> References: <87a9lp8uxk.fsf@gmail.com> <87ppuk6qqb.fsf@gmail.com> <87vc49y793.fsf@gmail.com> <87ppuhxk04.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374186469 26566 80.91.229.3 (18 Jul 2013 22:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 22:27:49 +0000 (UTC) Cc: Stefan Monnier , joakim@verona.se, emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 19 00:27:47 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 1Uzwfk-0004uf-Cy for ged-emacs-devel@m.gmane.org; Fri, 19 Jul 2013 00:27:40 +0200 Original-Received: from localhost ([::1]:36511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzwfj-0004uk-Qf for ged-emacs-devel@m.gmane.org; Thu, 18 Jul 2013 18:27:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzwfc-0004ty-D9 for emacs-devel@gnu.org; Thu, 18 Jul 2013 18:27:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzwfW-0001wB-9h for emacs-devel@gnu.org; Thu, 18 Jul 2013 18:27:32 -0400 Original-Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:41525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzwfW-0001vz-1y for emacs-devel@gnu.org; Thu, 18 Jul 2013 18:27:26 -0400 Original-Received: by mail-ea0-f169.google.com with SMTP id h15so2064231eak.28 for ; Thu, 18 Jul 2013 15:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=mxJIIQtbPxXGg02AVZLHp4hY9LDTzrJOu929juS2wYA=; b=vVc7gmsBLHU0K+Y74V2HA0o07o4I52KZDkZBKyWk4+hQ4f9H8WjxSgWdNhU31FabpW m6rDXtaD+BywNckKemMZxT6pPjFjH5bO+UL6zHV/QFqbJCY377ZTGM1JdWGZf7+35xV6 lq6q4YAk9W5BC1SScvcLL1zj05IsbG9uRpuFCA3eRJ07awuf9oPkTRw34xi0G6TFAcG1 z8mA5mPb9fscatx5XtATGQG5dmG2XCmdAKn3p4KPkAoPm0ltJdYoZd+Fts4OFC/vnvik jQ43hfmeAlThcdEtJ8zk9Yocx2YA3bVm2Hzx5s7bbbucmGmWHoqBqrODRQ4PzLhP/ajh H+pg== X-Received: by 10.14.203.8 with SMTP id e8mr12961687eeo.96.1374186445248; Thu, 18 Jul 2013 15:27:25 -0700 (PDT) Original-Received: from localhost (dhcp-077-249-018-128.chello.nl. [77.249.18.128]) by mx.google.com with ESMTPSA id n5sm22654623eed.9.2013.07.18.15.27.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Jul 2013 15:27:24 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 18 Jul 2013 10:47:15 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::229 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:162004 Archived-At: >> Lars Magne Ingebrigtsen >> on Thu, 18 Jul 2013 10:47:15 +0200 wrote: > Vitalie Spinu writes: >> For `imagemagick', `image-transform' will try to use internal >> Emacs ImageMagick support. For `convert' use external ImageMagick >> \"convert\" utility to produce a transformed temporary image >> file. > If you want to avoid temporary file management, you can "convert" with > output to a buffer, and then just call `create-image' on the buffer > contents. > It'll be slower, but I haven't measured how much slower. A big complication with temp files is that you have to track and clean unused once, and I don't see a clean way of achieving this as yet. On the other hand, the user might requests several transforms in a sequence, so you will have to store to the file to pass it further to 'convert' anyhow. It might also better work on remotes as the file is stored on remote machine. For batch transforms, like thumbnail creation, it would be much faster to get it done all at once bypassing emacs altogether. So I would stick with temp files for time being. Vitalie