On 11/30/06, Jesse Erlbaum <[EMAIL PROTECTED]> wrote:
Hi All --
I'm working on a CGI-App based module for CPAN, and I'm looking for
feedback in three areas:
1. Is there anything similar?
Hey Jesse,
I wrote a plugin for Template Toolkit last year sometime that does
something similar. Not what you are looking for, but definately in
the same vein. It works like this:
[% USE image = Image::Thumbnail(root='/var/www' name='/images/foo.gif'
width=100) %]
[% image.tag %]
The output would be something like this:
<img src="/images/foo.gif" width="100" height="120" />
or with more control:
<img src="[% image.name %]" width="[% image.width %]" height="[%
image.height %]" />
Which outputs the exact same thing.
Thumbnails are generated on the first request, and then saved in a
cache keyed by the parameters that were passed in.
What I like about this system is that it gives the power back to the
designers (which is exactly what you are trying to do with the image
server).
2. Is this useful / what features would make it more useful to you?
Definately
3. What should it be called?
That is always the most dificult part ;)
If anyone is interested, my mailing list post regarding this is here:
http://www.template-toolkit.org/pipermail/templates/2005-August/007765.html
And the code can be found here:
http://cees.crtconsulting.ca/perl/modules/Template-Plugin-Image-Thumbnail-0.01/
http://cees.crtconsulting.ca/perl/modules/Template-Plugin-Image-Thumbnail-0.01.tar.gz
I never did upload it to CPAN, but I still use it in several big
projects. I should probably throw it up there since someone might
find it useful.
Cheers,
Cees
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]