Watermark with WideImage With png

4

I'm trying to add a watermark via php with the Wideimage library.

    include 'WideImage/WideImage.php';
    $img = WideImage::load($targetFile);
    $watermark = WideImage::load('../images/logowater.png');
    $img = $img->merge($watermark, 'right-20','bottom-20', 60);

    $img->saveToFile($targetFile);

$targetFile é o nome do arquivo base

It is working normally, but if the image is a .png, the mark is applied and the space of the applied image is all white, I would need png applied. Is there a bug that went unnoticed?

    
asked by anonymous 14.07.2017 / 15:22

1 answer

2

Resolved,

I applied direct transparency to the image, increasing opacity.

I have modified in% with% transparency amount from 60 to 100

merge

    
24.07.2017 / 15:52