FloydATC has asked for the wisdom of the Perl Monks concerning the following question:
Now, it works. It installs into httpd.conf like so:
The idea is this: http://foo.bar/original.jpg$100 yields a thumbnail image that fits inside a 100x100 box. It works perfectly, using Image::Magick and a cache directory for performance.<LocationMatch '\.jpg\$\d+'> SetHandler perl-script PerlHandler Apache2::Thumbnail </LocationMatch>
I would have preferred to use the "?" character over "$" ofcourse, but I found no obvious way to match this in httpd.conf; I could pass ALL jpg images through my handler ofcourse, but that would hurt performance on a busy system. Suggestions would be MOST welcome.
My real issue though is this: The working name for my module is, as you can see, "Apache2::Thumbnail"...
I have never uploaded to CPAN. I don't know if this is a good name, and I certainly don't know if the module is "good enough" to take up this spot in the namespace.
Is there a place within the monastery where I can perhaps post the module to have it audited/reviewed/flamed/ridiculed? I don't want to make a total a^H...BEHIND of myself by uploading a module people warn each other about in years to come.
For now, the script can be found here: http://floyd.atc.no/Programming/Perl/Apache2::Thumbnail/ and the module can be seen in action here: http://floyd.atc.no/Fun%20stuff/Images/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Before uploading my module...
by philcrow (Priest) on May 22, 2007 at 19:29 UTC | |
|
Re: Before uploading my module...
by strat (Canon) on May 23, 2007 at 08:56 UTC |