Hi everyone,
I'm having a strange problem -- whether or not thumbnails are cached is apparently dependent on the type of source image.
Example:
http://www.thatvideogameblog.com/galleries/index.php?album=prototypeThe thumbs on Page 1 and the first half of Page 2 seem to regenerate themselves each time the page is viewed, while the thumbs on the second half of Page 2 and Page 3 are loading properly.
Now, these are images of two different games that I put into one gallery. If I separate them, then one gallery will load fine (the second half) and the first one always seems regenerate the thumbs each time the page is viewed. Images from both are have been previously resized and saved in Photoshop in the same way.
I'm going crazy over here with this. Help?
Comments
This issue is the only thing preventing me from starting using ZenPhoto, and unfortunately it's a biggie..
But nevertheless please post a few more details of your setup like php version, mysql, server system. Your site itself seems a little slow to me, too (but that is probably all that flash stuff..)
You additionally could try the nightly build to see if that changes anything.
Here's some info:
* Operating System : Linux
* Server : LiteSpeed
* MYSQL Version : 5.0.67-log
* PHP Version : 5.2.6
* PHP Safe Mode : Off
* PHP Memory Limit : 32M
* PHP Exif support : Yes ( V1.4 )
* PHP IPTC support : Yes
* PHP XML support : Yes
Thanks for the help.
You can also do some debugging--in functions-basic.php look for the `DEBUG_IMAGE` define and change its value to true. This will cause a debug_log.txt file to be written in you zp-core folder. In it you will find the record of the image processing. I suggest you do this from an image page and that you browse to the page, then delete the debug_log.txt file, then refresh the page. Otherwise you will have quite a lot of data recorded for all the thumbnails.
But in the meanwhile, I did the DEBUG_IMAGE thing and here's what it recorded on one of the new galleries I just created:
`
cacheImage($imgfile=ProjectOrigin-918.jpg, $newfilename=/fear-2-projet-origin/ProjectOrigin-918.jpg_595.jpg, $allow_watermark=1, $force_cache=, $theme=default) $size=595, $width=, $height=, $cw=, $ch=, $cx=, $cy=, $quality=85, $thumb=, $crop=
cacheImage:ProjectOrigin-918.jpg: $size=595, $width=, $height=, $cw=, $ch=, $cx=, $cy=, $quality=85, $thumb=, $crop=, $newh=446, $neww=595, $hprop=446, $wprop=793, $dim=595, $ratio_in=, $ratio_out=
cacheImage:no crop ProjectOrigin-918.jpg:$size=595, $width=, $height=, $dim=595, $wprop=793, $hprop=446, $neww=595; $newh=446; $quality=85, $thumb=, $crop=, $rotate=
`
But how/where do I access my CGI logs?
Thanks.
Do you have watermarking enabled? If so, then I can tell you that zenphoto failed at resizing the image which is almost always a memory limitation problem. What are the dimensions of your images?
However, watermarking is NOT enabled.
The original images are 1024x572 or 1280x728 (or somewhere between or very near to those sizes).
I had "Enable Persistent Archives" enabled when I just uploaded the zip file, and the thumbs still regenerate each time they're viewed whether that option is on or off.
I have ~8000 images to move over to Zenphoto, and I was kinda planning on zipping them
Where to go from here?
But I'm gonna give another update -- the thumbs for the images I uploaded as a zip file around 10-12 hours ago are now working as they should and load very fast. So it seems there's some odd delay when uploading images in zips. I just uploaded another 2 galleries to confirm for a 3rd time -- the images I uploaded as separate files load fine, but the ones uploaded in a zip once again regenerate the thumbs each time a gallery page is viewed. I'm willing to bet they'll be fine in another 10-12 hours, but do you guys have any idea what could be causing this delay?
Maybe this has something to do with the lightspeed server.