From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Mon, 30 May 2005 12:03:56 +0200 Message-ID: References: <87br6zuerw.fsf-monnier+emacs@gnu.org> <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.fsf@jurta.org> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117448481 32333 80.91.229.2 (30 May 2005 10:21:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 May 2005 10:21:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 12:21:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DchNf-00069K-T8 for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 12:20:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DchSW-0001cI-7e for ged-emacs-devel@m.gmane.org; Mon, 30 May 2005 06:25:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DchFW-0004v9-At for emacs-devel@gnu.org; Mon, 30 May 2005 06:11:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DchFT-0004tK-Nb for emacs-devel@gnu.org; Mon, 30 May 2005 06:11:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DchF8-0004Tb-No for emacs-devel@gnu.org; Mon, 30 May 2005 06:11:35 -0400 Original-Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dch9G-0005dk-Jx for emacs-devel@gnu.org; Mon, 30 May 2005 06:05:30 -0400 Original-Received: by wproxy.gmail.com with SMTP id 50so1519476wri for ; Mon, 30 May 2005 03:03:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UPDQC8SewjHSakc3X5UOPg7qRU/mIQA3Fy7I3IOuKW/kb6l5vESgp/O6GSrXWDypFR0jWvf98DAqCI9XJXlU/jtmt9dTLh3REFXgVoFJ7NEd5H+rXwkmxSjzbVvg1ZY+8+5IcVL/xyuA9PhfNeXKgjVuo0u8NI2+j0Yz/LrCimk= Original-Received: by 10.54.37.8 with SMTP id k8mr2594130wrk; Mon, 30 May 2005 03:03:56 -0700 (PDT) Original-Received: by 10.54.82.6 with HTTP; Mon, 30 May 2005 03:03:56 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <87hdgon2p2.fsf@jurta.org> Content-Disposition: inline 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:37885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37885 > Even though I like when thumbnail file names are composed from file > name parts (this allows to purge old thumbnails based on their names), > this method is not reliable, because thumbnails don't get updated when > image file contents changes. You're right, the "correct" way would be to make an md5 or sha1 of the file contents (not the filename) and add that to the thumbname. > AFAIK, GIMP uses md5 for naming thumbnail files. It stores original > file names as comments in image files. thumb.el could do the same > adding comments with original file names, e.g.: I'd like that, but the most prevalent opinion has been that people wants to have the filename directly visible in the thumbname, so that's what I've finally implemented. > One solution is to add the geometry string to thumbnail file names, e.g. >=20 > /home/user/.emacs-thumbs/100x100_b765f25b9ed0233aaefcd601e63d6c86.png >=20 > or to add the original geometry string to the thumbnail file comments: >=20 > /usr/bin/convert -comment "Geometry: 100x100" ... Comments would perhaps be better; adding more and more information to the thumbnames makes them unwieldy. In fact, I've used a sxhash and not md5 to make thumbnames more unique because they are already quite large (as they include a slightly mangled full path). --=20 /L/e/k/t/u