|
Posted by _q_u_a_m_i_s's on 01/23/08 14:24
On Jan 23, 11:57 am, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> 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/
did u tried http://phpthumb.sourceforge.net/ ?? i dont know how it
will behave for 25k images, but it uses imagemagik if possible(FAST) ,
and has a buit-in caching system. And with some small tweaks (replace
header("location:') with a 304 if i remember correctly(permanently
moved)) you can take advantage of the browser-cache, so the server
bandwidth will not be consumed sending the same images over and over
to the same browser.
[Back to original message]
|