Re: Thumbnail generator



On Jan 23, 11:57 am, Toby A Inkster <usenet200...@xxxxxxxxxxxxxxxxx>
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.
.



Relevant Pages

  • Re: Thumbnail generator
    ... Why don't you make a cronjob that checks for missing images, ... but making a thumbnail when the image was added would have been ... because there were so many routes that images could be added. ...
    (comp.lang.php)
  • Re: Word 2007 produces very large Word 2003 compatible files
    ... If you turn it on the default for all new documents will also save a preview picture. ... I don't have access to Vista right now to give you the exact wording but it's along the lines of "Always save preview thumbnail". ... Mainly this is because the thumbnail is saved as a small graphic in the ZIP package instead of the large embedded image (sometimes 2 images depending on the image file type) saved in the old file format. ...
    (microsoft.public.word.application.errors)
  • Re: Do Any Image Viewers Besides Firehand Ember Support Directory Preivew
    ... >>> Faststone image viewer is one to check out, ... >> I have 50 pictures from 25 different bridges. ... then Irfanview 'thumbnail view' will do just ... serially search 750 images to find what you were looking for. ...
    (rec.photo.digital)
  • Re: Photo management with Publisher 2007
    ... "Reduce download times by adding thumbnail images to a Web page". ... Photos illuminate the topic of my website. ... Applies only to what you see IN Publisher when creating your design, ...
    (microsoft.public.publisher.webdesign)
  • Re: Your favorite eBay "coin peeve?"
    ... Are your images still up for your ... know how I'd do the thumbnail hyperlinks within Turbo Lister, ... The HTML is very straightforward. ... which when clicked links to the raw scan) ...
    (rec.collecting.coins)