First, don't fret about uploading your module. It works and is compact. The code is easy to read. Rest assured that CPAN has modules of less quality and utility. The name is fine, simple and direct. If others want to improve it, they can send code. If you could describe it in more detail, you might try Apache2::Thumbnail::Descriptor.
That said, I have some thoughts. I would go ahead and use a PerlSetVar to control the cache location. People are particular about where apache can write.
I see why you want to trap the thumbnail size in the location match, but it feels a bit odd. The other module you refer to uses a location for which all images will be scaled to the same size. Different sizes would just need different location matches. As long as their aren't more than a couple of thumbnail sizes that seems like a small burden to me. A set var in each one controls the size. That seems less magical to me, and therefore more appealing. So you could say http://example.com/images/thumbs/100/original.jpg. Everything before the file name would be matched and the file is the name of the jpg which you look for in the original image path.
Those are just my first impressions. Don't let them disuade you from uploading it so others can try it.
Phil
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.