Re: image code

From: Date: Tue, 19 Jun 2001 20:02:07 +0000
Subject: Re: image code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54418@lists.php.net to get a copy of this message
Seems pretty straightforward, actually; I would write a script that takes as parameters the name and desired size of a graphic, resizes it, and returns the thumbnail ( look at ImageJPEG() ). Then I would write a script that iterates through the files in the directory and, for each, gets a thumbnail. The only problem is that this is a fair bit of work; if it's called at all frequently, you might be better to create a static version. But that of course does away with the 'self-updating' bit. A possible fix would be to write master page: check how long since the page has been updated; if necessary, create and save an updated version of the imagelist. Then forward the user to the saved static version. This would let you have the page update itself on a delayed basis, ie hourly. ""David L. Walgamotte Jr."" <david.walgamotte@wild.net> wrote in message news:01061815003203.10272@falcon.wild.net... > > Can anyone send me sample code or point me in the right direction. I'm > looking for a php script that will index and thumbnail a directory of images. > So when I drop an image in this directory the web page will update automaticly.

« previous php.general (#54418) next »