Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Thanks, merlyn!!

I knew it wouldn't be a waste of time posting this script here. From your cited article [bold accents added]:

Thumbnails, which are miniature versions of the original pictures, help the visitors to a site decide whether they want to take the time to download the entire picture. (Please don't confuse this with what one of my friends calls dumbnails, which are fullsized downloads that are scaled in the browser to be small. Lame.) There's nothing worse than spending two to five minutes downloading a typical JPEG file, only to discover that you've already got it, or it looks, well, useless.

Admittedly, I am, in fact, using so-called "dumbnails" when there are no thumbnails available.

As it happens, in this particular application, this turns out not only NOT to be a bad thing, it actually turns out to be a good thing: scaling the full-sized images into thumbnails, in effect, caches them at the browser, making the gallery somewhat faster than when I supply actual thumbnails (presuming most kids' parents will wind up looking at every image, which appears to be the case 9 times out of 10).

Typical image sizes created with Kid Pix Studio Deluxe on a machine with a 800x600 pixel screen average anywhere from 3 to 18 Kb in size, or 2 to 12 seconds each to download on a typical dialup speed connection.

One pleasant side effect of using frames is that even before all of the so-called dumbnails are loaded, clicking on one to display it full-sized in the other frame seems to affect the background downloading (caching) of the remaining images not at all.

Your point is well taken, however, that I am forcing users to unnecessarily download ALL of the images; I agree that in probably any other context, this simply would NOT be acceptable. Here, however, the users are almost all, shall we say, motivated.

Next, I plan to augment the script with a version of the solution you present in the article, above, hopefully making it more acceptable for other applications.

dmm

You can give a man a fish and feed him for a day ...
Or, you can
teach him to fish and feed him for a lifetime

In reply to Re(2): Image Gallery script by dmmiller2k
in thread Image Gallery script by dmmiller2k

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found