Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: reading all images in a directory

by waswas-fng (Curate)
on Jun 24, 2005 at 18:00 UTC ( [id://469779]=note: print w/replies, xml ) Need Help??


in reply to Re: reading all images in a directory
in thread reading all images in a directory

The do thumbnail at loading suggestion is great -- it may seem like a small task to generate the thumbnails dynamically but it always turns out that it is the straw that breaks the camels back when the site gets busy. The two ways I do it (they have different advantages and weaknesses) are: 1: as images are uploaded generate the thumbnails needed (usually in my case a few different sizes for different views). 2: Allow uploads to happen without creating thumbnails, but on first access to each type of thumbnail generate and cache it.

The first way works better when the addition of images to a site are controlled only by your app -- such as with a cgi form. The second works well when users can place images in a directory structure or in some other way to insert into the site without your app knowing about them.


-Waswas
  • Comment on Re^2: reading all images in a directory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found