From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: A few issues with thumbs.el Date: Mon, 13 Jun 2005 16:21:43 +0200 Message-ID: References: <87br6zuerw.fsf-monnier+emacs@gnu.org> <87u0kqrsur.fsf-monnier+emacs@gnu.org> <87hdgon2p2.fsf@jurta.org> <87vf508myc.fsf-monnier+emacs@gnu.org> <87oeabsw97.fsf@rocksteady.printf.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118674012 28882 80.91.229.2 (13 Jun 2005 14:46:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 14:46:52 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 13 16:46:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhqBr-0008S9-Q0 for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 16:45:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhqGf-0005pE-AL for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 10:50:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhqCh-00034Y-5S for emacs-devel@gnu.org; Mon, 13 Jun 2005 10:46:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dhq7L-0001Vk-Fz for emacs-devel@gnu.org; Mon, 13 Jun 2005 10:40:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dhq7D-0001Mc-U1 for emacs-devel@gnu.org; Mon, 13 Jun 2005 10:40:40 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Dhprp-00089X-EH for emacs-devel@gnu.org; Mon, 13 Jun 2005 10:24:45 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dhpl6-0003eS-Px for emacs-devel@gnu.org; Mon, 13 Jun 2005 16:17:48 +0200 Original-Received: from user.ifsab.se ([193.41.170.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jun 2005 16:17:48 +0200 Original-Received: from brakjoller by user.ifsab.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jun 2005 16:17:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user.ifsab.se User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:DjAMOtKEumK9jrHEyUc0aJUUYds= 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:38721 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38721 storm@cua.dk (Kim F. Storm) writes: >> Seems quite good although I don't like the idea of using PNG-files as >> their size is much larger than using JPEG. > > As long as they are smaller than the block size on your file system, > it probably doesn't matter... Good point. Anyway, PNG is the format suggested in the spec and one could guess that they did some investigation on pros and cons of various image formats before deciding on PNG... >> The file names are named according to the absolute URI's MD5 value, >> which most in this thread seems to dislike (including myself). > > Is there really such a thing as an absolute URI? > > E.g. if the images are on a server somewhere -- the file name on > windoze may be h:\x\y\z.png while on GNU the file name may be > /mnt/images/z.png. Sorry, that was probably a sloppy description from me. What they suggest is to generate the URL/URI (which is it?) to the file, so: /home/mathias/pics/my_pic_01.jpg becomes file:///home/mathias/pics/my_pic_01.jpg After that they compute the MD5 sum for this value and use that as thumbnail file name. Also, some information is added to the PNG file (original file name and some more stuff). Read the full spec for more information, I better not try to explain it myself again... :)