http://qs321.pair.com?node_id=206965


in reply to Re: Image Gallery script
in thread Image Gallery script

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

  1. I wrote this in about twenty minutes because I needed it for a low volume site,
  2. 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,
  3. I may have tweaked once or twice since then, most certainly before posting it here,
  4. 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,
  5. the site was donated, so changing ISP's wasn't an option,
  6. 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?).

dmm

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