How to show a png image with transparent background using Imagick in PHP
Photo from Unsplash

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!