I apologize in advance if this topic has been broached somewhere else, but I can't find any documentation or forum posts that cover this.
The scenario: I've created a mega-menu that uses phpthumbof re-sized images taken directly from TVs where the image is attached to each page as a "cover photo". The menu only shows 2nd level pages (so between 3-7 menu items per section, 6 sections). Take into account this is a medium sized site with between 100-150 pages, including articles (so it will continue to grow).
The problem: With the config setting "phpthumbof.postfix_property_hash" set to "on" to prevent naming collisions, every single page produces a unique cached version of all the images in the mega-menu. That starts adding up exponentially.
The semi-solution: Turning off the postfix_property_hash has the desired effect of only using one cached image for every mega-menu thumb on every page.
*Someone please correct me if I'm wrongly assuming this is what happens.
The downside to this is, I can never use phpthumbof manipulated photos from these TVs anywhere in the site (or indeed, any image that has the same name as one of these images).
The needed solution: So I don't know if this is possible or if this is something I need to do a feature-request for, but if I could just provide a custom postfix_property_hash in my call of the phpthumbof snippet, that would add SO much power to it. Example:
[[!phpthumbof? &input=`[[+imgurl]]` &options=`&w=180&h=100&f=jpg` &postfix_hash=`mega-menu`]]
Thanks in advance for any thoughts, suggestions, etc.!
* For instance, does it pull the image from cache on each page like I think, or does it actually recreate each image every time a page is loaded (even though the menu itself is cached, every page has a slightly different version of the menu cached).
[ed. note: dan971 last edited this post 12 years, 9 months ago.]