Page 1 of 1

MagickWriteImage - An unknown C API exception occurred

Posted: 2012-07-18T08:57:04-07:00
by gbradley
Hi there,

I'm running into a problem with MagickWand and I have no idea what's causing it. Essentially I'm unable to use magickwriteimage as every time I do, I get the following error:

Code: Select all

PHP Fatal error:  magickwriteimage(): An unknown C API exception occurred [on C source line 374] in ...
The PHP being executed is simply:

Code: Select all

<?
$wand = NewMagickWand();
MagickReadImage($wand,'x.jpeg');
MagickWriteImage($wand,'y.jpeg');
?>
The directory has the correct read/write permissions. I'm also running into an error if I try magickechoimageblob, when I get this error:

Code: Select all

Application transferred too few scanlines `...filename...' @ jpeg.c/EmitMessage/237 in ...
I'm running RHEL with ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP, and MagickWand 1.0.8.

Thanks for any pointers.....