PDA

View Full Version : Thumbnail problem: some but not all generate


natdavauer
04-12-2005, 01:42 AM
I have 1110 images uploaded but when I generate thumbs, I only get 284 thumbs created. The rest just show up as image name in the archive. Is there a limit to how many thumbs can be generated? I'm totally baffeled because it seems random which ones get generated. I tried changing the settings on the size etc. of the thumbs with no avail. Any idea how I can get them all to generate?

you can see the archive with the thumbs it makes here:
http://davauer.com/pixelpost/index.php?x=browse

Thanks so much for any help on this one.
Nat
--------------------------
www.davauer.com/ospin

raminia
04-12-2005, 06:33 AM
since the code for regenerating thumbnails is like this:
$thumbnail_counter = 0;
$dir = "../images"; // images folder
if($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if($file != "." && $file != "..") {
$thumbnail = createthumbnail($file);
$thumbnail_counter++;
} // if
} // while
closedir($handle);
echo "<div id='jcaption'>Thumbnails updated</div><div id='content'>$thumbnail_counter thumbnails updated.</div><p />";
} // if handle
I think it's most probable that the problem is with limitation that you server put in place. ask you host admin about it.

Anonymous
04-12-2005, 07:13 PM
You're right, there was a time limit set on how long a script can run on the server. since there were so many images it had to be bumped up to 5 min.
Thanks!
Nat

Rob
04-13-2005, 03:48 AM
The default timeout for PHP is 30 seconds, so this will be a problem for many people with a lot of images to resize. There are ways around it since Gallery manages it, but I need to look into it.