ZenphotoCMS Forum
How to generate a cache image - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: How to generate a cache image (/thread-9814.html)



How to generate a cache image - hqueyra - 23-04-2012

I'm developping a plugin doing image analysis. For such algorithm I need to work on small images for efficiency. I read on the doc that cache images are generated while we are displaying them with an tag. But for such algorithm I would like to generate the cache image at the right size without displaying them, is there a way to do that ?
Best regards




How to generate a cache image - sbillard - 23-04-2012

You can call the cacheImage() function directly. But be aware that there is considerable setup required to get out the image you want. That work has been done already in the normal scheme of Zenphoto running.