Unable to use Imagick in PHP
Posted: 2014-11-15T06:13:18-07:00
Hi,
I "think" I was able to successfully install Imagick in my local xampp installation .
PHP V: 5.3.8
Apache 2.2.21
Windows Vista
I also installed imagick software in c:\ImageMagick folder, copied DLLs from core to the main location and set the right home path.
I am able to see the loaded imagick module in PHPINFO
I am also able to see Imagick formats = 202
I am also able to convert the images with command line from one format to another.
Its only when I use a PHP script, I get this error
Fatal error: Uncaught exception 'ImagickException' with message 'unable to load module `C:\ImageMagick\IM_MOD_RL_JPEG_.dll' in C:\xampp\htdocs\test\mycard\jq\export.php on line 13
and
ImagickException: unable to load module `C:\ImageMagick\IM_MOD_RL_JPEG_.dll': The specified procedure could not be found. @ error/module.c/OpenModule/1277 in C:\xampp\htdocs\test\mycard\jq\export.php on line 13
Here is the code
Can someone please help me and let me know what needs to be done additionally to get the PHP going ? Thanks
I "think" I was able to successfully install Imagick in my local xampp installation .
PHP V: 5.3.8
Apache 2.2.21
Windows Vista
I also installed imagick software in c:\ImageMagick folder, copied DLLs from core to the main location and set the right home path.
I am able to see the loaded imagick module in PHPINFO
I am also able to see Imagick formats = 202
I am also able to convert the images with command line from one format to another.
Its only when I use a PHP script, I get this error
Fatal error: Uncaught exception 'ImagickException' with message 'unable to load module `C:\ImageMagick\IM_MOD_RL_JPEG_.dll' in C:\xampp\htdocs\test\mycard\jq\export.php on line 13
and
ImagickException: unable to load module `C:\ImageMagick\IM_MOD_RL_JPEG_.dll': The specified procedure could not be found. @ error/module.c/OpenModule/1277 in C:\xampp\htdocs\test\mycard\jq\export.php on line 13
Here is the code
Code: Select all
<?php
$im = new Imagick();
$im->readImage(dirname(__FILE__) . '/a.jpg');
$im->thumbnailImage(150, null);
$im->writeImage(dirname(__FILE__) . '/thumb.png');
$im->destroy();
?>