Should I post this in Bug Tracker?
http://www.thrustimages.com/I have turned on Grayscale Thumbnails in the Theme Options page. Some Thumbnails REFUSE to generate in grayscale. I have manually deleted the cache, regenerated the cache from the admin page, allowed ZP to do it upon a user viewing a page. Some thumbs simply refuse to gen in grayscale :-(
As an example, please see my web site above. The Floyd Bennett Field album is one example, it's album thumb is always in color and then in the gallery itself, the Capital Airshow gal for example, one image thumb refuses to generate in grayscale.
Thanks for your help.
Manny
Comments
I did examine your link above. Curiously, the thumbs that are not grayscale are being fetched from the cache while the ones that are grayscale are generated by i.php. This latter is pretty strange since after a page refresh these should all be cached and there sould be no links involving i.php.
I suspect that there are two things happening.
1. Somewhere in your theme there is a standard "thumb" being generated for those images.
2. The code that is generating the inline thumbnails is not perserving the "grayscale" request when it gets the cachefile name so that it will "find" the regular version of the image when it looks in the cache if there is one. If not it will generate the i.php call (which will create the thumbnail with the requisite '_gray' tagging and will not therefore be found for the request without the grayscale indicator.)
There is a means to collect data about what is going on. Set the `DEBUG_IMAGE` define in functions-basic.php to `true` and all sorts of data will be collected in the debug log.
For now, here is what I have done to the stock gallery
--Installed latest ZP
--Installed zpGallerific theme
--Modified the custom.css file only
--Modified some of the theme images.
--Switched some of the colorbox images in the zp-core folders
That's all I can remember. I have tested by totally deleting the cache folders, regenerating the caches from admin, purging the cache from admin etc. It only happens in some galleries, and even WITHIN a gallery, some images are grayscale and some are not :-/
I can give you guys FTP access to my site if you wish to peruse any of the files, folders etc. Let me know off-line. manny (at) manny (dot) org
Cheers!
Now, the Debug.log is huge, what do you want me to look for? If you want to look at it yourselves, let me know.
Posting to bug tracker now.
Thanks
Did you check if that theme uses custom image functions as my collegue mentioned? Those can override the admin options and need a separate parameter set manually. Info about those functions on our user guide's documentation.
If you haven't please test if this issue occurs with a standard theme as well.
Don't forget to clear the image cache.
I switched on each of the default themes. Purged the cache each time. All thumbs being generated in greyscale
Eventually I put back the zpGalleriffic theme and now all thumbs are being generated with greyscale. ???
Could it be the actual thumbnail greyscale checkbox setting? I noticed when I switch from zpGalleriffic to the default hteme, i have set this option again. As if the setting was not exactrly the same.
I'll keep an eye on it and report back as needed. Thanks for your help!
Manny
Well, that theme uses the custom image functions as said above which don't honor the greyscale setting. I assume zpGalleriffic does it the same way.
If Zenphoto finds a cached thumb images at the same size it will use it without regenerating it. Maybe that was what you encounter when switching.
EDIT:
Just tried the Zenpage theme on my local test install and even with the custom functions I did not spot any thumb that was not grey scale generated so far.
Reset the debug log then refresh the other window. Without doing anything more capture the debug log and attach it to your ticked.
I uploaded a copy of the debug log.
Think I see a pattern. If I load any of the default themes and set the thumbnails to greyscale, change back to ZPGALLERIFFIC, all works fine. To revert back to color thumbs, I do the same thing. Works fine IF I first enable the feature on a default theme. IF I do it ONLY in zpgalleriffic, it does not work consistently. Sometimes some images get grey some do not.
Right now, I have it set as I did originally which is to ONLY activate grey thumbs in zpgalleriffic. It is again not consistent, but, the pattern has changed. Some galleries that did not work before are working now, and yet some that did work, are not working now.
I know how to work around it which is good enough for me, but if it is a bug and I can help, feel free to ask me for anything, including FTP to my site
Thanks
Cheers!