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


Post by justin » 2008-12-10T16:38:23-07:00

I'm trying sample code, not sure what I'm doing wrong:

Fatal error: magickreadimage(): C API cannot read the format "gradient:#FF6600-#990000" (reason: unrecognized color `

Took code from here: ... /ChangeLog
Further note: all files referred to in any ImageMagick image formats/patterns
must pass php.ini's safe_mode, open_basedir, etc. restrictions,
or script will fail.

Their functionality is accessed as follows:

$mgck_wnd = NewMagickWand();
MagickSetWandSize($mgck_wnd, 100, 125);
MagickReadImage($mgck_wnd, 'gradient:#FF6600-#990000');

which creates a dark-orange to maroon vertical gradient.
Ubuntu, PHP MagickWand version 1.0.6

Post Reply