Reply to Re: Thumbnail generator

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация