SOLUTION - How to show a png image with transparent background using Imagick in PHP
- Details
- Written by: Mr Alexandre J-S William ELISÉ
- Category: Free Forever
-
Also available:
- Hits: 3233

About 1mn to read
Sure enough, by analysing the code of Imagick
...Read more:
Sure enough, by analysing the code of Imagick library using my favourite PHP IDE PhpStorm, I discovered the right method to call just after the Imagick constructor. Here is some sample code.
$image = new Imagick('example.png');
$image->setImageAlphaChannel(Imagick::ALPHACHANNEL_ACTIVATE);
It's your turn now! Happy coding!