title: ImageMagick Transparent PNG Background
body: <p>I am trying to take this image, <img src="https://i.stack.imgur.com/feLSC.jpg" alt="enter image description here"> which I converted to a .png file and then want to remove the white background to make it transparent.</p>
  
  <p>I have tried running the following but haven't had any luck.</p>
  
  <pre><code>    $strInputFile = 'car.png';
      $execScript = '/usr/local/bin/convert '.$strInputFile.' ';
      $execScript .= "-transparent white car-new.png"; 
      $output = shell_exec($execScript);
  </code></pre>
  
  <p>Am I doing something wrong? The new file gets created, but still has the white background.</p>