MagickWriteImage - An unknown C API exception occurred

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
gbradley
Posts: 1
Joined: 2012-07-18T08:48:22-07:00
Authentication code: 15

MagickWriteImage - An unknown C API exception occurred

Post by gbradley » 2012-07-18T08:57:04-07:00

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

Post Reply