skip to Main Content

php-imagine: how can i make the watermark semi-transparent (reduce the opacity)?

I'm using https://github.com/php-imagine/Imagine (as use ImagineImagickImagine) to handle my images. I'm applying a transparent (alpha-channel) PNG image as watermark, following the docs here https://imagine.readthedocs.io/en/stable/usage/introduction.html#image-watermarking : $watermark = $imagine->open('/my/watermark.png'); $image = $imagine->open('/path/to/image.jpg'); $size = $image->getSize(); $wSize = $watermark->getSize(); $bottomRight = new…

VIEW QUESTION
Back To Top
Search