Convert command not found in php script
<p>Running a simple conversion php script in Mac terminal returns an error: </p>

<blockquote>
  <p>convert command not found.</p>
</blockquote>

<p>Here's a snippet of my script: </p>

<pre><code>&lt;?php

$configs = array (
    'android/appicon.png' =&gt; array ('-resize 128x128'),
    'iphone/appicon.png' =&gt; array ('-resize 57x57'),
    'iphone/appicon@2x.png' =&gt; array ('-resize 114x114'),
);

foreach ($configs as $png =&gt; $opt)
{
    $wildcard = preg_replace ('#\.png#', '*', $png);
    $cmd = "rm -f ../Resources/$wildcard";
    print "$cmd\n";
    `$cmd`;

    $opt = join (' ', $opt);
    $cmd = "convert icon.png $opt ../Resources/$png";
    print "$cmd\n";
    `$cmd`;
}
</code></pre>

<p>what am I missing? Do I need to install imageMagik to have a convert function to run? Thx</p>
