title: Imagick - Converting a PNG to JPG, transparent background turns black
body: <p>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.</p>
  
  <p>I'm using Imagick version 2.3, and here's what I have:</p>
  
  <pre><code>$this-&gt;_object = new Imagick();
  $this-&gt;_object-&gt;setResolution(300, 300);
  $this-&gt;_object-&gt;readImage($fileRead);
  $this-&gt;_object-&gt;setImageMatte(true);
  $this-&gt;_object-&gt;setImageMatteColor("white");
  $this-&gt;_object-&gt;setImageAlphaChannel(Imagick::ALPHACHANNEL_OPAQUE);
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>setBackgroundColor, setImageBackgroundColor, composite over a white image
  </code></pre>
  
  <p>And none of these seem to work. Any suggestions?</p>