From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: tumme directory Date: Sun, 12 Feb 2006 19:45:47 +0200 Organization: JURTA Message-ID: <87r768d0zr.fsf@jurta.org> References: <87r76t8afw.fsf@stupidchicken.com> <87zmkzf99z.fsf-monnier+emacs@gnu.org> <874q36ipyz.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139767149 12206 80.91.229.2 (12 Feb 2006 17:59:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2006 17:59:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 18:59:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F8LV4-00079p-4p for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2006 18:59:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8LV3-0000h9-LU for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2006 12:59:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8LU6-0000NT-Vh for emacs-devel@gnu.org; Sun, 12 Feb 2006 12:58:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8LU5-0000Ml-7e for emacs-devel@gnu.org; Sun, 12 Feb 2006 12:58:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8LU3-0000M6-H4 for emacs-devel@gnu.org; Sun, 12 Feb 2006 12:58:03 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8LYK-0000Z2-35 for emacs-devel@gnu.org; Sun, 12 Feb 2006 13:02:28 -0500 Original-Received: from mail.neti.ee (80-235-40-69-dsl.mus.estpak.ee [80.235.40.69]) by Relayhost2.neti.ee (Postfix) with ESMTP id E0CA97FFD; Sun, 12 Feb 2006 19:58:01 +0200 (EET) Original-To: Mathias Dahl In-Reply-To: (Mathias Dahl's message of "Sat, 11 Feb 2006 10:39:15 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:50411 Archived-At: >> The thumbnail PNG file sizes are much smaller than generated by other >> programs, but still are readable by them. > > Are they still conforming to the standard? Yes. `pngcrush' can add textual chunks (either compressed or not) with the prefix `Thumb::Image::' that make generated thumbnails perfectly readable by other programs. However, there is one problem with textual chunks added by `convert'. Its `-set attr value' command option adds only compressed textual chunks, and GQview (a GTK image viewer) can't read compressed chunks. So if `pngcrush' is not installed on the system, then thumbnails we can produce with `convert' will be unreadable by GQview. This is not a problem since when GQview can't recognize the thumbnail it overwrites it with its own version. A later versions of GQview might fix this shortcoming. And Gimp reads compressed chunks just fine. >> But when I regenerate them with a set of PNG optimizing utilities, >> it reads them instantly. And disk space saving is almost three-fold >> which is significant with a large thumbnail collection. > > It seems to me that you should dive into tumme.el and start hacking :) Well. I've added support for the Thumbnail Managing Standard to tumme.el. It adds all required attributes, but still misses some additional attributes (like original dimensions). Since the same attributes should be displayed in the *tumme* buffer, I expect more discussion how to extract these attributes from original images. I'd like to add (defcustom tumme-cmd-read-info-program "identify" "*Executable used to get information about original images. Used together with `tumme-cmd-read-info-options'." :type 'string :group 'tumme) (defcustom tumme-cmd-read-info-options "%p -format \"%%f %%wx%%h %%b\n\" %f" "*Format of command used to get information about original images. Available options are %p which is replaced by `tumme-cmd-read-info-program', %f which is replaced by the file name of the original image." :type 'string :group 'tumme) and use it to extract image information. -- Juri Linkov http://www.jurta.org/emacs/