On Sat, Jun 14, 2003, Pierre Baillet wrote:
Hi,
i've been recently working on another gallery generator for my personnal
website. I've almost completed a working clone of RDFPic, the picture
commenter from the W3, using Ruby plus a homemade EXIF parsing library
and a GTK2 interface[1]. and i've started working on the generator itself.
The idead being this generator is a kind of tool �-la make that starting
from source folder, a set of templates and a destination folder,
generates a bunch of html files and jpeg thumbnail (plus optionally,
rescaled big size file to avoid putting 3Mpix files on the net). This
"set" of files is supposed to be ready to be put on the net.
I know you fellows are quite brilliant when it comes to thinking, so
I'll expose my problem. Apologies if I sound too "demanding" and boring.
I want to find a way to generate thumbnail _and_ associate them to their
original big jpeg file so as to be able to be sure the thumbnail is up
to date ie the original big jpeg file hasn't changed. What I want to
allow is: a modification of any of the metadata (except say the
orientation) should not force me to rebuild a thumbnail.
I was thinking of using a jpeg COMment inside the thumbnail to indicate
the checksum of the original jpeg file (excluding the metadata).
Using this system i also wanted to "track" the thumbnail in case the
users modifies it source tree (so that my gallery will find the
thumbnail wherever it is in the destination tree and link/move it to
good new destination place).
What would you think of such a system ?
This also means that to find a given thumbnail for a big jpeg file, I
must know the destination path in some way. I'm also thinking of adding
the thumb path to the main JPEG file.
Thanks for any feedback :)
1:
http://oct.zoy.org/code/ruby/rubum-tools/photordf_0.05.jpg
--
Pierre Baillet
Pour qu'il y ait le moins de m�contents possible,
il faut toujours taper sur les m�mes.
Devise Shadok