How to reliably detect PNG image transparency with PHP
Published the Wednesday, February 21, 2018 at 7:44 PM Keywords: PNG Imagick Image
I recently had to find out if a PNG has transparency using PHP. All the code I found didn't seemed to work correctly for the various kind of PNG I had to deal with. Here is the function I used.