Imagick / imagick

🌈 The Imagick PHP extension 🌈
http://pecl.php.net/imagick
Other
540 stars 136 forks source link

imagick not work on windows #222

Open hitechbeijing opened 6 years ago

hitechbeijing commented 6 years ago

qq 20171217204357 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.

mlocati commented 6 years ago

Check this article to see if you installed everything correctly

tomchitty commented 5 years ago

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: imagick-error

It loads for 4-5 seconds and "die".

The path is OK, it works for JPEG images.

ulver2812 commented 4 years ago

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();