ImagePngAlpha + ImageMagick bug in some circonstances
PHP class for PDF
Brought to you by:
nicolaasuni
Hi,
We are using some alpha png over pictures in order to make a shaddow.
There was an issue in the ImagePngAlpha parsing causing issues when extracting the alpha channel - setImageMatte was not enough - here is the fix :
// remove alpha channel
if (method_exists($imga, 'setImageMatte')) {
//@todo Palpix fix transparence PNG
$imga->setImageAlphaChannel(Imagick::ALPHACHANNEL_DEACTIVATE);
$imga->setImageMatte(false);
} else {
Hum, a better way (as it seems that depending on the imagick version, this solution may not work) :
See bug #754