ZenphotoCMS Forum
getCustomImage and watermarking - 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: getCustomImage and watermarking (/thread-3862.html)



getCustomImage and watermarking - liparis - 2008-10-06

Hi,
I'm trying to make my zenphoto site a page with a random image. I have used code from the effervescence theme to do it. Everything works ok except for watermarking. Watermarking is on on the site and works when using the printCustomSizedImage (see http://xraynaudphotos.ovh.org/index.php?album=Paysages&image=pict1625_1.jpg for example). However, when using the getCustomImage to show the Random image, the image is not watermarked. There is an option to inhibit watermarking in getCustomImage but setting it to false or true does not change anything. I'd be gratefull to anybody who could explain me how watermarking works. Thanks.




getCustomImage and watermarking - sbillard - 2008-10-06

Watermarks on images are cached. So if you have already cached the image before trying to watermark it you will have to purge the cache to see the result. The parameter to getCustomImage() does work.




getCustomImage and watermarking - liparis - 2008-10-07

Thank you very much for your quick answer. It seems that I am not using correctly these different functions. I cleared the cache but still don't have watermark on random images. Here is the code I'm using:
code `

" title="">[b]
[/b]

`
You can see the result here: http://xraynaudphotos.ovh.org/index.php?album=Nature&image=Farc04_1.jpg. The left picture is watermarked, the right one isn't. Am I doing something wrong ? Thanks.

Watermark is the small red signature on the bottom right of the picture.




getCustomImage and watermarking - sbillard - 2008-10-07

I don't see what is wrong, but why don't you just include the custom functons from Efferevescence+ and use its printHeadingImage() function.

BTW, you should enclose code in "peck" marks (below the tilds at the left of the numberic keys on the US keyboard.) otherwise not everything gets shown.




getCustomImage and watermarking - liparis - 2008-10-08

Thanks for your help. I really don't know what is happening. I tried by using directly the customfunction.php but it still didn't work. I found a workaround by using the makeImageCurrent()and the printCustomSizedImage().
Thanks for your help.