Imagick: PNG support available in command line, but not available in PHP
问题 I found that I did not have PNG support in my Imagick installation, so I installed libpng . Now I can see that PNG format is supported when I run a command convert -list format And conversion from PNG to JPG works fine from command line: convert a.png b.jpg But when I try to read a PNG file in PHP: $src = new \Imagick(); $src->readImageBlob( file_get_contents($file) ); // reading PNG format -it gives me Error 500 ("...no decode delegate for this image format") Also when I run phpinfo() - I