help unable to generate a box

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
skyjan

help unable to generate a box

Post by skyjan »

to all
i do have a testbox server which is Centos 5 and imagemagick version 6.4.1 / PHP Version 5.1.6 / imagick 2.1.1
the following parameter works
$im = new Imagick();
/* Create empty canvas */
$im->newImage( 100, 100, "white", "jpg" );//png,jpg,gif.. image format
/* Create the object used to draw */
$draw = new ImagickDraw();
/* Set the button color.
Changing this value changes the color of the button */
$draw->setFillColor( new ImagickPixel("$backgroundcolor") ); // BOX COLOR //#4096EE
/* Create the rectangle */
$draw->rectangle( 0,0, 100, 100 );


now this generate a rectangle in my test server

however in live server which is using fedora 6 and imagemagick 6.3.7 / php version 5 the code above doesn't work


im assuming this piece of code
$im->newImage( 100, 100, "white", "jpg" );//png,jpg,gif.. image form

has something to do with the bugs

-note that the live server error setting disabled due to some reason



is there some command that is not working under 6.3.7 ??

your help is highly appreciated

thanks in advance
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: help unable to generate a box

Post by mkoppanen »

Hi,

are there version differences between the test and the live server? It is a good practice to log the errors on live servers.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply