Problem with imagick in php code
Posted: 2014-04-18T08:30:00-07:00
Hi,
I have code as below, but display Fatal error: Class 'Imagick' not found in C:\xampp\htdocs\
putenv(getenv('PATH').':/usr/local/bin');
// Read
$img = new imagick($pdf.'[0]');
// Convert to png
$img->setImageFormat('png');
$img->writeImages($png, false);
Can someone help me?
1. I have XAMPP 1.8.3 ,[PHP: 5.5.3], I installed ImageMagick-6.8.9-0-Q16-x64-dll in the path C:\ImageMagick-6.8.9-Q16.
2. download and put php_imagick.dll in xampp/php/ext/
3. add extension=php_imagick.dll in php INI file.
4. stop Apache and MySQL then restart, it display PHP Startup:imagick: Unable to load dynamic library ''C:\xampp\php\ext\php_imagick.dll'.
It can function well in command prompt, but in php appear problem.
Should I install in the path C:xampp\? but somehow I tried in the path but same result with error Fatal error: Class 'Imagick' not found in C:\xampp\htdocs\.
I have code as below, but display Fatal error: Class 'Imagick' not found in C:\xampp\htdocs\
putenv(getenv('PATH').':/usr/local/bin');
// Read
$img = new imagick($pdf.'[0]');
// Convert to png
$img->setImageFormat('png');
$img->writeImages($png, false);
Can someone help me?
1. I have XAMPP 1.8.3 ,[PHP: 5.5.3], I installed ImageMagick-6.8.9-0-Q16-x64-dll in the path C:\ImageMagick-6.8.9-Q16.
2. download and put php_imagick.dll in xampp/php/ext/
3. add extension=php_imagick.dll in php INI file.
4. stop Apache and MySQL then restart, it display PHP Startup:imagick: Unable to load dynamic library ''C:\xampp\php\ext\php_imagick.dll'.
It can function well in command prompt, but in php appear problem.
Should I install in the path C:xampp\? but somehow I tried in the path but same result with error Fatal error: Class 'Imagick' not found in C:\xampp\htdocs\.