We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to use wartermark in phalcon

dear all,

How to use water mark in phalcon. My current doesn't work.

$mark = 'img/watermark.png'; $image->watermark($mark, TRUE, TRUE);

any idea. plz??

edited Jul '16

https://docs.phalcon.io/en/latest/api/Phalcon_Image_Adapter.html

public watermark (Phalcon\Image\Adapter $watermark, [unknown $offsetX], [unknown $offsetY], [unknown $opacity])

First argument should be an image adapter instance, while second and third integers for position



921

I need to call phalcon image adapter. thanks

$mark = new Phalcon\Image\Adapter\GD('img/watermark.png'); $image->watermark($mark, 270, 320);

https://docs.phalcon.io/en/latest/api/Phalcon_Image_Adapter.html

public watermark (Phalcon\Image\Adapter $watermark, [unknown $offsetX], [unknown $offsetY], [unknown $opacity])

First argument should be an image adapter instance, while second and third integers for position