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: thumbs.el and transparency Date: Mon, 06 Feb 2006 09:27:36 +0200 Organization: JURTA Message-ID: <87u0bdc5g7.fsf@jurta.org> References: <17366.53124.274532.548329@kahikatea.snap.net.nz> <878xspwnjm.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 1139211746 28296 80.91.229.2 (6 Feb 2006 07:42:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2006 07:42:26 +0000 (UTC) Cc: emacs-devel@gnu.org, brakjoller@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 08:42:23 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 1F610w-0006CQ-1W for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2006 08:42:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F614D-0006cR-Fn for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2006 02:45:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F613z-0006Zz-Gu for emacs-devel@gnu.org; Mon, 06 Feb 2006 02:45:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F613x-0006XW-Tc for emacs-devel@gnu.org; Mon, 06 Feb 2006 02:45:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F613x-0006XM-Iy for emacs-devel@gnu.org; Mon, 06 Feb 2006 02:45:29 -0500 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F613I-0005MR-R4; Mon, 06 Feb 2006 02:44:49 -0500 Original-Received: from mail.neti.ee (80-235-32-77-dsl.mus.estpak.ee [80.235.32.77]) by Relayhost1.neti.ee (Postfix) with ESMTP id DD449CC41; Mon, 6 Feb 2006 09:41:50 +0200 (EET) Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "Mon, 6 Feb 2006 09:22:58 +0900") 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:50088 Archived-At: > I think both "dired style" and "photo album" style could be useful in > difference circumstances, depending on what I want to do with the > pics: if I'm re-arranging the files, deleting etc., dired would be > useful; if I just want to look at pictures, a photo-album style layout > [with slightly larger thumbnails] would be useful... This is what I expect from a thumbnail package too. In dired style I wish small thumbnails to be displayed in dired buffers, and in photo-album style - larger thumbnails together with captions containing image attributes like image dimension, size, etc. Currently neither of Emacs thumbnail packages does this. A simple way to imitate photo-album style is to generate a Emacs buffer with a table with cells like: ~/.thumbnails/normal/072fe850fe7459ff797873891fbeb9ab.png imgp2017.jpg 1.9MB 1600x1200 and to invoke `iimage-mode' on it (with making thumbnail file names invisible). >> Personally, I do not like the larger size of the thumbnail files used >> by the Thumbnail Managing Standard although I like standards. > > It seems like it should be user-configurable, and configurable > separately for the different cases (you're right the, in the dired > case, they should be a bit smaller). > > Does the "standard" allow for saving thumbs with multiple sizes? Is > the thumb size encoded in the filename somehow? The Thumbnail Managing Standard defines two sizes for thumbnails: 128x128 and 256x256, and two corresponding directories with the following meaning: ~/.thumbnails/normal/ The default place for storing thumbnails. The image size must not exceed 128x128 pixel. Programs which need smaller resolutions should read and write the 128x128 thumbnails and downscale them afterwards to the desired dimension. ~/.thumbnails/large/ The previous notes apply to this directory too, except that the thumbnail size must be 256x256 pixel. There are also more suggestions in http://jens.triq.net/thumbnail-spec/creation.html: If a program uses another size for it's previews it loads one of the two versions and scales them down to the desired size. However, these are suggestions. Implementations should cope also with images that are smaller than the suggested size for the normal and large subdirectories. Depending on the difference between the actual and the desired size, they can either use the smaller one found in the cache and scale it down or recreate a thumbnail with the proposed size for this directory. Since Emacs can't scale down images itself, it could create (with the help of external programs) and use smaller thumbnails in ~/.thumbnails/normal/. But writing smaller thumbnails to this directory is not a good thing. I definitely wouldn't like if Gimp (which uses the same directory) displayed thumbnails smaller than 128x128. Perhaps we should use third directory ~/.thumbnails/small/ even though it is not defined by the Thumbnail Managing Standard. -- Juri Linkov http://www.jurta.org/emacs/