![]() |
|
Getting Zenphoto to generate a different sized thumbnail - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Getting Zenphoto to generate a different sized thumbnail (/thread-12468.html) |
Getting Zenphoto to generate a different sized thumbnail - Archbob - 2016-03-04 Hi, I actually want ZP to generate thumbnails in the cache folder that are more than 100x100, is there a way to do this? Getting Zenphoto to generate a different sized thumbnail - acrylian - 2016-03-04 Zenphoto does generate cached resized images on the file whenever an image function is called and the page visited the first time. Do you mean generate/pre-cache via the cacheManager then? The Zenpage theme also provides an example Getting Zenphoto to generate a different sized thumbnail - Archbob - 2016-03-04 I'm actually still using the zenpage theme on goodfreephotos, we just changed the files, I'm not sure where custom functions would be. The standard functions set the height and width to be 200, but the files in the cache are still 100x100. Getting Zenphoto to generate a different sized thumbnail - Archbob - 2016-03-04 Is there a variable that just controls what size it is. I'm using the Zenpage theme that I've modified. I'm not sure where the custom function would be if I'm not using the standard options. I changed the values in the standard options but the generated thumbnails are still 100 by 100, its just the they are being resized to 200 when being displayed, when I changed 200 to 300, the were being resized to 300 but the actual thumbnail being generated was still 100x100. I want zenphoto to generate 300x300 or 400x400 thumbnails when I upload the image in the admin panel. Getting Zenphoto to generate a different sized thumbnail - acrylian - 2016-03-04 The thumbs on your site are 100x100px but upscaled by HTML/CSS. That's why they look a bit blurry. So the theme must use fixed function calls to use these image size. These are on the related theme files naturally just like the default functions (the functions are named accordingly as well). The Zenpage theme has 95x95px thumbs hardcoded with custom sized image functions and also does not use the standard options therefore. Which is why they are actually disabled for that theme normally. Getting Zenphoto to generate a different sized thumbnail - Archbob - 2016-03-04 I've also been searching for a Printfullimage() function that takes some parameter like a title and prints a full image. I can't seem to find one. Getting Zenphoto to generate a different sized thumbnail - acrylian - 2016-03-05 There is no You actually should have seen that if you modified the Zenpage theme as it uses that on its image page as well. It only works in image context, within the next_image loop or on the image page. Unless you set a specific image object to use. There are also class methods. All available functions and class methods are listed here: http://www.zenphoto.org/documentation/elementindex.html |