IMagick problem
Posted: 2013-04-01T07:40:15-07:00
Hi, i am really new about ImageMagick and IMagick, so please forgive my possibly noobish question.
I'm using Windows 8, WAMP 2.2 32 bit, PHP 5.4 and Apache 2.2.
I installed ImageMagick 6.8.4.2 Q16 dynamic 32 bit and downloaded imagick.dll from http://www.peewit.fr/imagick/ (PHP 5.4, thread safe version). I copied that .dll in the "ext" directory, updated php.ini and setted consistently the MAGICK_HOME environment in httpd.conf (C:\imagemagick\).
After I noticed phpinfo() shows IMagick 3.1.0 RC2 correctly installed (at least it seems), I tried a simply code as:
No exception.
So I tried that other code:
And I see:
Gave me an exception message:
Any ideas on what could be the problem?
Thanks in advance to everyone will answer and forgive my rusty english.
I'm using Windows 8, WAMP 2.2 32 bit, PHP 5.4 and Apache 2.2.
I installed ImageMagick 6.8.4.2 Q16 dynamic 32 bit and downloaded imagick.dll from http://www.peewit.fr/imagick/ (PHP 5.4, thread safe version). I copied that .dll in the "ext" directory, updated php.ini and setted consistently the MAGICK_HOME environment in httpd.conf (C:\imagemagick\).
After I noticed phpinfo() shows IMagick 3.1.0 RC2 correctly installed (at least it seems), I tried a simply code as:
Code: Select all
$path = "c:\wamp\www\images\1.jpg";
try{
$im = new Imagick(realpath($path));
echo "OK";
}catch(Exception $e){
echo $e->getMessage();
}
So I tried that other code:
Code: Select all
$path = "c:\wamp\www\images\1.jpg";
try{
$im = new Imagick();
$im->pingImage(realpath($path));
echo "OK";
}catch(Exception $e){
echo $e->getMessage();
}
It seems I missed the jpeg encoding (!!). Also che following:no decode delegate for this image format `C:/Windows/TEMP/magick-5580Zi9qcMmgwwqa' @ error/constitute.c/ReadImage/550
Code: Select all
$path = "c:\wamp\www\images\1.jpg";
try{
$im = new Imagick(realpath($path));
$type=$im->getFormat();
echo 'OK';
}catch(Exception $e){
echo $e->getMessage();
}
Using the command: "convert -list configure" from the Windows' command prompt, I see this:Can not process empty Imagick object
Finally I noticed ImageMagick is working fine, but IMagick still not.DELEGATES bzlib freetype jpeg jp2 lcms png tiff xl1 xml wmf zlib
Any ideas on what could be the problem?
Thanks in advance to everyone will answer and forgive my rusty english.