denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Denemo-devel] Thumbnails


From: Richard Shann
Subject: [Denemo-devel] Thumbnails
Date: Sat, 21 May 2011 20:30:33 +0100

It looks like it won't be too arduous to create thumbnails according to
the gnome (and kde?) standard. Glib has a function
g_compute_checksum_for_string ()
which you use on the URI of the .denemo file. (e.g.
"file:///home/jbloggs/mydenemofiles/mygreatwork.denemo") and with this
as the file name you store a .png in ~/.thumbnails/normal of size
128x128 pixels.
We would want the .png to be basically something created by denemo's
print excerpt on the first three measures or so - a script could make an
intelligent choice of how much to include so that the thumbnail was
enough to identify the piece (we may need the larger sized thumbnails
that the standard allows). (The \incipit in LilyPond is not this BTW).

This would have a nice consequence that folk using gnome (and kde?)
would see these thumbnails in their file browsers when looking at
their .denemo files.

There is then the job of displaying them in the denemo file selectors as
you move down a list of .denemo files. Volunteers, as usual, always
welcome:)

Richard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]