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: Mon, 22 Jul 2013 22:17:44 +0200 Organization: EUR Message-ID: <87k3kigxhz.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 1374524290 18714 80.91.229.3 (22 Jul 2013 20:18:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 20:18:10 +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 Mon Jul 22 22:18:11 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 1V1MYZ-0002Kt-Rz for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 22:18:07 +0200 Original-Received: from localhost ([::1]:33807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1MYZ-000691-Eb for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 16:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1MYR-00063O-55 for emacs-devel@gnu.org; Mon, 22 Jul 2013 16:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1MYL-0007Mw-5N for emacs-devel@gnu.org; Mon, 22 Jul 2013 16:17:59 -0400 Original-Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:49979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1MYK-0007MW-Vx for emacs-devel@gnu.org; Mon, 22 Jul 2013 16:17:53 -0400 Original-Received: by mail-ea0-f182.google.com with SMTP id d10so4073624eaj.41 for ; Mon, 22 Jul 2013 13:17:51 -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=Uc6BxMLPpj2MoSAMdAu+jYHEld7Jv2erjfhKFPkcSxE=; b=juYreAEBGH9R5Sil3YdiDdUrxqDeOoVD1O3zcIWeMQgdDwOyJm7xLRdlFwXFsXGCqP 6Dw5UNAgx0TP1Q9/3BpEHqsHG1Pj79N78n1c2q7OteEoIiHBO3SvDEu0JwHMpEsUarss qZAcW8bOLtXlVQoQPfk9jGgdkOKfTmgATWlf4/LO6GeqPFim2qMSrJOmYapB8yBhBJV9 oNedv7yN4yrlUnmMH6xeXkgdy1fXnIOojinPn6cyAtsedwiToT2s2PV7joNEY3JHVbxa tdTlY0KlSnSqLPzafqrlqOy+EI1UKzBzY8uPNctajSwFUa2QBK8/gNPxRMWRXG2aUGHX G7bA== X-Received: by 10.15.107.194 with SMTP id cb42mr29253633eeb.136.1374524271840; Mon, 22 Jul 2013 13:17:51 -0700 (PDT) Original-Received: from localhost (dhcp-077-249-018-128.chello.nl. [77.249.18.128]) by mx.google.com with ESMTPSA id l42sm53376222eeo.14.2013.07.22.13.17.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 22 Jul 2013 13:17:51 -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::236 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:162074 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. Redirecting output to a buffer is very fast, as fast as using temp files. For a 3.5MB image various transforms give no difference in speed. But I wonder what is the correct way of doing it. (call-process "convert" nil (list (get-buffer-create "tttt")) nil "temp.jpg" "-size 500x1000" "-") also puts silly warnings into the same buffer: Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated. Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated. How do I get rid of those? Vitalie