I try to use Imagick php extension without success
Problem::
Code: Select all
NoDecodeDelegateForThisImageFormat `G:\PHPServer\Zend\Apache2\htdocs\cosplay-it\public\images\tuto\test.jpg' @ constitute.c/ReadImage/526
Command "identify -list format" returns all supported format as well, containing jpeg format.
After some research I tried to add a environment variable "MAGICK_HOME" to the Image Magick install folder.
I also tried to move all files from "modules/filters" and "modules/coders" Image Magick install folder to the root of the install folder.
No way
The script is quite simple:
Code: Select all
$fileDir = 'G:/PHPServer/Zend/Apache2/htdocs/cosplay-it/public/images/tuto/';
$fileName = 'test.jpg';
$im = new Imagick();
$im->readImage($fileDir . $fileName);
$im->setImageFileName($fileDir . 'test-copy.jpg');
$im->writeImage();
Any ideas ?
Thanks a lot.
Cya, Benjamin.
Edit: phpinfo returns
ImageMagick Number of supported formats: 0
Edit: i saw from phpinfo:
ImageMagick version: ImageMagick 6.4.6 2008-12-01 Q16 http://www.imagemagick.org
So i tried to install ImageMagick 6.4.6 binaries (+update environment var), and same problem