Page 1 of 1

[Resolved]No way with "NoDecodeDelegateForThisImageFormat"

Posted: 2009-06-25T11:13:22-07:00
by Benjamin
Hi,

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
For information, i'm on a windows server, with Zend_Server (php+apache bundle) which includes v2.2.2 php_imagick.dll extension.

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();
Maybe not a detail: i'm running on Windows 7 RC.

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

Re: No way with "NoDecodeDelegateForThisImageFormat" message :)

Posted: 2009-06-25T13:38:52-07:00
by Benjamin
Problem Fixed.

Like i wrote, i've installed the "ImageMagick 6.4.6 Q16" binaries but i didn't try to copy all files from "modules/coders" and "modules/filters" to the root of the IM install folder.

I did and it worked fine.

So, if you've got the same problem:
- you need to see the IM version your php extension is for
- download it from http://mhonarc.veidrodis.com/image_magick/binaries/ for exemple
- copy all files from "modules/coders" and "modules/filters" into your IM install folder root
- add an environment variable named "MAGICK_HOME" to your IM install folder

And that's it. It worked for me.

I tried to download the good php extension version (for last IM release), but no result.

Cya,

Benjamin.