Nice of you to comment, and I appreciate your remarks. You are absolutely right, this program is inefficient and big and it doesn't even generate real thumbnails.
All of that is true, but
- I wrote this in about twenty minutes because I needed it for a low volume site,
- I added the code to generate thumbnail-sized images dynamically (when they weren't already provided), in order to use the script as an index page for a frameset, also in about twenty minutes,
- I may have tweaked once or twice since then, most certainly before posting it here,
- the ISP which was hosting the site was running an ancient (5.004) version of perl, did not support installing perl modules or libraries or allow arbitrary executables to be compiled for executing under CGI scripts,
- the site was donated, so changing ISP's wasn't an option,
- it is my children's school website
All in all, I thought it was a useful thing for what it was, and that's all I posted for. It has provisions for locating thumbnail images, if provided and named appropriately, and using those instead of dynamically scaling them at the browser (this is how we use it, actually).
I downvoted you because you apparently have a lot to learn about how we do (or say) things on Perl Monks, regardless of how smart or how clever a perl coder you may be (and I do not mean to imply one way or another that you're deficient in either of those areas -- how would I know?).
If you GIVE a man a fish you feed him for a day
But, TEACH him to fish and you feed him for a lifetime
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||