After multiple attempts, I was able to install ImageMagick and PHP Imagick extension. However, it fails to create Imagick object itself. Unfortunately, no error/ exception is shown anywhere.
My development environment is -
Apache/2.4.23 (Win64) PHP/7.0.10
CodeIgniter 3.0.3
imagick 3.4.3 (compiled with ImageMagick 6.9.3-7 Q16 x64 2016-03-27)
ImageMagick-7.0.8-61-Q16-x64-dll.exe
MAGICK_HOME and PATH variables are set correctly
magick
and convert
commands on command line are working fine.
The output of below test is Yes
<?php
echo extension_loaded('imagick') && class_exists('Imagick') ? 'Yes' : 'No', PHP_EOL;
The output of below test is resulting in ERR_CONNECTION_RESET
try {
$im = new Imagick('c:/IMG_2935.jpg'); OR
$im = new Imagick('c:/IMG_2935.cr2'); OR
$im = new Imagick();
$im->readImage('C:/e35455e32c684bc70d187418d95b9eb7.CR2');
} catch (ImagickException $e) {
print_r($e, true);
}
Pls help..
TIA