Is there any way to change the colour of this background?
Tried a lot of functions to no avail, setimagebackground(), setimagemattecolor().. Hope someone can help me

Code: Select all
$im->PaintOpaqueImage ('black', 'white', 50);
Code: Select all
$im2 = new imagick();
$im2->newImage($im->getImageWidth(),$im->getImageheight(),'white','jpeg');
$im2->compositeimage($im,imagick::COMPOSITE_DEFAULT,0,0);