title: Resizing image with exec and convert in PHP
body: <p>I'm trying to convert a png image in PHP the following way:</p>
  
  <pre><code>exec($cmd, $output, $return_code);
  </code></pre>
  
  <p>Where $cmd contains the following line of code:</p>
  
  <pre><code>/usr/bin/convert 'images/original/Id1741.png' -thumbnail x200 -quality '90' './cache/a3b84c5931d9619d12a9e244a310cb17_h200.png'
  </code></pre>
  
  <p>Calling this code on the command line works perfectly fine, but executing it on the webserver gives me the following error message:</p>
  
  <pre><code>Tried to execute : convert 'images/original/Id1741.png' -thumbnail x200 -quality '90' './cache/a3b84c5931d9619d12a9e244a310cb17_h200.png', return code: 1, output: Array()
  </code></pre>
  
  <p>If I remove the thumbnail option the command executes just fine on the webserver, but oviously it does not resize anything. So it's not a problem with permissions or the setup I guess.</p>
  
  <p>PHP Version is <code>5.2.17</code>.
  ImageMagick Version is: <code>6.6.0-4 2012-04-26</code></p>
  
  <p>Anyone ever had a similar issue and can help me with this?</p>