all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: tumme directory
Date: Sun, 12 Feb 2006 19:45:47 +0200	[thread overview]
Message-ID: <87r768d0zr.fsf@jurta.org> (raw)
In-Reply-To: <m2bqxe5j5o.fsf@gmail.com> (Mathias Dahl's message of "Sat, 11 Feb 2006 10:39:15 +0100")

>> 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/

  reply	other threads:[~2006-02-12 17:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-28  0:26 tumme directory Chong Yidong
2006-01-29 10:46 ` David Kastrup
2006-01-29 14:10   ` Mathias Dahl
2006-01-30  0:57   ` Richard M. Stallman
2006-01-30  0:57 ` Richard M. Stallman
2006-01-30 21:51   ` Mathias Dahl
2006-01-31 18:06     ` Richard M. Stallman
2006-02-01 10:33       ` Mathias Dahl
2006-02-09 23:26       ` Mattis
2006-02-10  7:34         ` Nick Roberts
2006-02-10 10:21           ` Mathias Dahl
2006-02-10 16:53         ` Stefan Monnier
2006-02-11  0:04           ` Mattis
2006-02-11  1:23             ` Juri Linkov
2006-02-11  9:39               ` Mathias Dahl
2006-02-12 17:45                 ` Juri Linkov [this message]
2006-02-12 23:52                   ` Mathias Dahl
2006-02-11 22:04               ` Miles Bader
2006-02-12 17:29                 ` Juri Linkov
2006-02-12 23:26                   ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r768d0zr.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.