From: Phillip T. <ne...@ya...> - 2001-11-23 01:14:17
|
I have a webserver with more disk space than cpu (p75, 24 mb RAM, 13 gigs... yeah I know), so I added the following two lines to previewmaker.pl to pregenerate all the resized images in the image-cache: in this section: ---------note the lines with a + ------------ print "Beginning preview generation...\n"; foreach $file (@FilesToPreview) { createDisplayImage($previewMaxDimension, '', $file); + createDisplayImage($maxDimension, '', $file); + createDisplayImage(512, '', $file); print "Created preview for \"$file\"\n"; } --------------------------------------------- I'm not sure if this is the "right" way to do this, but it seems to work, and my poor webserver seems much more responsive. I guess this could be added as a command line option. __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |