From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Guerry Newsgroups: gmane.emacs.help Subject: Re: image-dired, how does it do the thumbs? Date: Thu, 14 Feb 2008 17:22:13 +0000 Message-ID: <87myq38ncq.fsf@bzg.ath.cx> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203009818 25198 80.91.229.12 (14 Feb 2008 17:23:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2008 17:23:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas Davour Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 14 18:23:58 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPhng-0003V3-Bl for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Feb 2008 18:23:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPhnB-00079m-Gc for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Feb 2008 12:22:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPhmt-00076b-73 for help-gnu-emacs@gnu.org; Thu, 14 Feb 2008 12:22:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPhmr-00072e-Ev for help-gnu-emacs@gnu.org; Thu, 14 Feb 2008 12:22:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPhmr-00072E-AX for help-gnu-emacs@gnu.org; Thu, 14 Feb 2008 12:22:17 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPhmq-0005oK-Ou for help-gnu-emacs@gnu.org; Thu, 14 Feb 2008 12:22:17 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so1162603ugf.48 for ; Thu, 14 Feb 2008 09:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=q6UCGA7FVXai2Cc320yW9Or3bf7Z1ZlCJirsP4n7wt4=; b=PE1X4ogg6jdwAHD0QX6DC9n8iU3gYumGE4xsygS2oVSmJ1F7EmDScJ5qquFJkj474JqN5QjHsj5o0tAAkoO3x8le55k9Ur9JxazKPFeQeNbIJnyOL1p0qDnwAIwY2oL4fM14tQMpPpmhfjwB3GSzY0ZVQPZkDv2aS6PI60lZK1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=tOlRsEmbsCkFFnfLlydt9lPiz1w7Ts89wHoYb/noorR2Oxz0GfKYFtpmM63JtxWIHx+EC30TsEk042hh5WsA4TzVNiTZTOfjN4R32iYDYfytJM5YBm2IB8n3p3R8EFLMAl5alOnZhB81cnwc6ZLdSaTvbNbN1KkjRy2Y/j+bYXc= Original-Received: by 10.67.19.17 with SMTP id w17mr458490ugi.33.1203009735794; Thu, 14 Feb 2008 09:22:15 -0800 (PST) Original-Received: from bzg.ath.cx ( [81.99.213.34]) by mx.google.com with ESMTPS id k30sm15250265ugc.53.2008.02.14.09.22.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Feb 2008 09:22:14 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 3132D1575BD; Thu, 14 Feb 2008 17:22:12 +0000 (GMT) In-Reply-To: (Andreas Davour's message of "Tue, 12 Feb 2008 19:49:22 +0100") 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.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51519 Archived-At: Andreas Davour writes: > But, since I'd like to finish my program as an exercise I'm still a bit > curious about how image-dired actually creates the thumbnails. Is it > using an external program to do it, or is it done in elisp? I'm not very > good as elisp, and am still learning Common Lisp, so I couldn't figure > it out. > > Pointers to how to scale pictures in lisp would be nice, if someone > have them. image-dired uses convert from the ImageMagick tools suite. >From image-dired.el : ;; PREREQUISITES ;; ============= ;; ;; * The ImageMagick package. Currently, `convert' and `mogrify' are ;; used. Find it here: http://www.imagemagick.org. And there is this defcustom: ,---- | (defcustom image-dired-cmd-create-thumbnail-program | "convert" | "Executable used to create thumbnail. | Used together with `image-dired-cmd-create-thumbnail-options'." | :type 'string | :group 'image-dired) `---- I don't know about a lisp utility doing what convert does. -- Bastien