Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Image Gallery script

by perlservant (Initiate)
on Oct 21, 2002 at 00:24 UTC ( #206740=note: print w/replies, xml ) Need Help??


in reply to Image Gallery script

Hi there! Code is probably great for intranet or fast internet but in reality has no real useful meaning. It uses the M$ FrontPage shrank images for thumbnails. Thumbnail is not the re-sized image tags but new image created from the original and re-sized, then it's a thumbnail.

I have created a number of commercial albums for use on the internet -> one of the Albums. All images processed and site logos posted in real time and thumbnails created.

I'd rather write some code instead of searching for one that'll do the job. If you'll look at the source of the pages - you will notice that code has no garbage as " ' or # as browsers just ignore them unless you use whitespace in ALT or form tags.

Well, my whole image processing code (using NetPBM) is about 5 times shorter then your code above that uses modules. Why use modules at all in this case???

If you need a code - lemmiknow and I'd be glad to help!


if you want to do something - use Perl
if you can't do something - use Perl

Replies are listed 'Best First'.
Re: Re: Image Gallery script
by dmmiller2k (Chaplain) on Oct 22, 2002 at 00:43 UTC

    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://206740]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-03-01 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?