[Resolved]No way with "NoDecodeDelegateForThisImageFormat"

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Benjamin

[Resolved]No way with "NoDecodeDelegateForThisImageFormat"

Post 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
Last edited by Benjamin on 2009-06-25T13:39:13-07:00, edited 1 time in total.
Benjamin

Re: No way with "NoDecodeDelegateForThisImageFormat" message :)

Post 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.
Post Reply