Open hitechbeijing opened 6 years ago
Check this article to see if you installed everything correctly
I got the same issue but only when I load a PDF file.
Here is my code:
$fullPath = __DIR__ . '/documents/public/actualite/file.pdf';
$im = new Imagick($fullPath . '[0]');
And here the browser:
It loads for 4-5 seconds and "die".
The path is OK, it works for JPEG images.
Same issue here (only with PDF files) with this code I get the ERR_CONNECTION_RESET:
$im = new Imagick();
$im->pingImage(realpath('sample.pdf'));
echo $im->getNumberImages();
The image above is the imagick config. I just write:
$im = new Imagick(); $im->readImage('20110614178.jpg');
when open the web page, it not return any php error just display ERR_CONNECTION_RESET.