|
Posted by Toby A Inkster on 01/23/08 09:57
Erwin Moller wrote:
> I do not understand WHY this thumbnailing must happen when the folder is
> opened.
> Why don't you make a cronjob that checks for missing images, or even
> better: make a thumbnail the moment a new image is added?
I've done this before, and it worked pretty well. It was part of a web
based file manager. Using a cronjob would have been plausible, I suppose,
but making a thumbnail when the image was added would have been
impossible, because there were so many routes that images could be added.
(The same directory was accessible via Samba amongst other means.)
But for that, a typical directory would have contained a few hundred
images, and not 25000, so performance wasn't a huge problem.
The OP could use a compromise solution -- run an overnight cronjob to
build missing thumbnails, but keep his current script to build any new
thumbnails for newly added images.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 23 days, 21:04.]
CSS to HTML Compiler
http://tobyinkster.co.uk/blog/2008/01/22/css-compile/
[Back to original message]
|