And I want my background to end up white instead. I've taken a look at the other questions and none of the answers seemed to really solve this problem.
I'm using Imagick version 2.3, and here's what I have:
$this->_object = new Imagick();
$this->_object->setResolution(300, 300);
$this->_object->readImage($fileRead);
$this->_object->setImageMatte(true);
$this->_object->setImageMatteColor("white");
$this->_object->setImageAlphaChannel(Imagick::ALPHACHANNEL_OPAQUE);
I've tried
setBackgroundColor, setImageBackgroundColor, composite over a white image
And none of these seem to work. Any suggestions?