PHP Classes

Image Missing

Recommend this page to a friend!

      Thumbnail Party  >  All threads  >  Image Missing  >  (Un) Subscribe thread alerts  
Subject:Image Missing
Summary:Image Missing
Messages:2
Author:Nic Kom
Date:2007-10-12 17:44:16
Update:2007-10-13 06:10:26
 

  1. Image Missing   Reply   Report abuse  
Picture of Nic Kom Nic Kom - 2007-10-12 17:44:16
Hi Mickey,

Your PHP class is wonderful, but I discovered one strange behaviour, i.e. when generating multiple images in a single page (using GD), some of the images will randomly gone missing. And it seems this behaviour is happening only in Firefox, but works fine in IE (at least for my IE7). You will better understand what I'm talking about by visiting http://www.pamsabah.com/common/thumbnail/index.html using FF and IE.

Any help would be appreciated.

Thanks and regards,
Nic

  2. Re: Image Missing   Reply   Report abuse  
Picture of Mickey Chan Mickey Chan - 2007-10-13 06:10:26 - In reply to message 1 from Nic Kom
I have checked your sample page and found that your problem is also appeared in IE7 too. I am wondering if the problem is due to your web server, rather then the class itself. In my sample, all images are an separated thread in web server. Because Thumbnail Party will generate a cache file in cache directory, once it found a valid cache file, its will use the cache rather then generate a new file. Therefore you will be watching the cached image when you refresh the page within 1 hr. (default setting of $thumb->intCacheLifetime in thumbnail.php), no matter it is FF or IE. But I found that when I refresh the page again and again, some image s disappeared previously will randomly re-appear. So I think cache images should be generated correctly.

You may check that the problem is come from the class or not using following step:
1. delete all file inside cache directory
2. access your sample page once and then rename the index.html so that no one can access that page again.
3. check all images in your cache directory that all cache images are generated correctly. There should be 46 images in the cache directory for GD test (I think you havn't installed ImageMagick)

Please let me know if you found any mission cache image.

Another thing you should check is the version of the GDlib in your server.

I have the same sample page at http://dev.crossmedia.com.hk/news_agency/includes/image/thumbnail_party/. Please check if you are found any missing image there.