![]() |
|
Get Album Thumb Without Watermark - 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: Get Album Thumb Without Watermark (/thread-12503.html) |
Get Album Thumb Without Watermark - Epsilon - 2016-04-27 Hi When browsing an album I have a "banner" that contains the album's details (title, tags, description etc.) positioned at the top of the page. This banner uses a custom sized version of the albums thumbnail as a background image. I have the gallery setup to use watermarks for all of the images, however for the banner I would like to use a background image that does not have a watermark. Is there a way to retrieve the current albums thumbnail (with a custom size) that does not have a watermark? Currently I use this code to retrieve the thumbnail:
P.s. I tried to check the documentation on this site (specifically the guides for "template Functions", "functions.php" and "functions-basic.php") but I get a 403 Forbidden error message. Get Album Thumb Without Watermark - acrylian - 2016-04-27 Sorry, about the doc issue but something is not right on our server for yet unknown reasons. All "thumb" named image functions should not return a watermark. As far as I can see it is setup correctly. Did you try clearing the cache? We have to try to reproduce this. Alternatively you could try: While the doc is not working correctly, you can get the same function information directly from Get Album Thumb Without Watermark - Epsilon - 2016-04-28 Thank-you for the tip about the function comments, I will check them out and see what I can find. I have tried purging the image cache using cachemanager plugin and have also cleared my browser cache. Currently I have "image thumbnails" in the Zenphoto options set to use watermarks. If I disable this option the banner doesn't have the watermark, however none of the other thumbnails do either. I would really like to override the watermark option just for the banner background instead of disabling the watermarks on all thumbnails. Initially
Get Album Thumb Without Watermark - acrylian - 2016-04-28 That would be correct behaviour. You could try to temporarily reset the option right before the image function calls: Then after the images reset it again Get Album Thumb Without Watermark - fretzl - 2016-04-28 You could also use something like this:
Get Album Thumb Without Watermark - Epsilon - 2016-04-29 I tried to use I echoed the value of "Image_watermark" before and after using the The code I used for testing is below ("image thumbnails" in the Zenphoto options is set to use a watermark):
Getting the full image webpath works but some of the images are a bit too large (filesize) to use on the page. I think I will just leave it as it is. Thank-you very much for your suggestions, I really appreciate the help Get Album Thumb Without Watermark - acrylian - 2016-04-29 You may have to try Another way would be to:
|