modperl-stonehenge::images_schwartz_code_for_putting_pictures_online

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: Matt Sergeant <msergeant@startechgroup.co.uk>
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Apache::Gallery
Date: 08 Oct 2001 06:52:26 -0700

>>>>> "Matt" == Matt Sergeant <msergeant@startechgroup.co.uk> writes:

Matt> Have you seen Stonehenge::Pictures from Randal's WT column? It's
Matt> kinda neat, and I use it on home.sergeant.org (which is down
Matt> right now). It allows you to add captions to the images, which
Matt> it think is something you're sorely missing. And it paginates
Matt> the images into sizeable pages. One thing I'd like to see added
Matt> (if I ever get around to it), is the images displayed on a .html
Matt> page with the caption and next/prev buttons. Currently both
Matt> Stonehenge::Pictures and Apache::Gallery simply display the .jpg
Matt> on the zoomed view.

I'm planning a rewrite that will do exactly that.  In fact, I wanna
make a .jpg link that doesn't have a correct referer (yeah, I know, I
know) do a redirect to a single-page containing the jpg, to prevent
people from inlining my images.  Part of the problem with that has
been that the logic to select a picture has been ordinal based, not
named-based, and the logic to show a particular image hasn't really
known what position each image was in the order of things.  I'm
gonna get rid of the "1-n" entirely, just go to names for next/prev

The rewrite will be Template-Toolkit based, so the "backend logic"
will figure out the interesting bits to display, while the "frontend
logic" will be a template contained at the end of the program,
allowing fine tweaking easily.

===

To: Vivek Khera <khera@kcilink.com>
From: Stas Bekman <stas@stason.org>
Subject: Re: Apache::Gallery
Date: Wed, 10 Oct 2001 10:05:23 +0800

Vivek Khera wrote:

>>>>>>"RLS" == Randal L Schwartz <merlyn@stonehenge.com> writes:
>>>>>>
> 
> RLS> The rewrite will be Template-Toolkit based, so the "backend logic"
> RLS> will figure out the interesting bits to display, while the "frontend
> RLS> logic" will be a template contained at the end of the program,
> RLS> allowing fine tweaking easily.
> 
> I wrote up a TT program back in May when my second baby girl was born
> to put together a collection of images.  It generates static HTML
> pages with captions and scaled images (thumbnails too).  I think Stas
> added a bunch of features to it.  I haven't gotten around to merging
> them back into my code and putting it on CPAN.  I see no point making
> it all dynamic on the web server, since they rarely change.

Yup, it's very neat. I can send it to you Randal, if you want, but you 
probably want to write your own :)

I've added the paging for single images, so you don't have to click 
around...

===

To: "Peter J. Schoenster" <peter@schoenster.com>
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Apache::Gallery
Date: 10 Oct 2001 07:11:32 -0700

>>>>> "Peter" == Peter J Schoenster <peter@schoenster.com> writes:

Peter> Hey, I've got an image gallery using mod_perl as well :), still much 
Peter> in development.

Perhaps writing an Image Gallery is the second rite of passage for a
Perl hacker, shortly after they write a templating system.

:-)

Advanced gurus reinvent Exporter and SelfLoader for no apparent reason
(witness CGI.pm :).

:-)

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu