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?