title: Imagick setColor not working with php
body: <p>I've tried setting all pixels to black. But it isn't working. I am getting the same image as original.</p>
  
  <p>Here is my code: </p>
  
  <pre class="lang-php prettyprint-override"><code>$image = new Imagick(__DIR__."/image_new.jpg");
  
  $i=0;
  $j=0;
  
  while ($i &lt; 100)
  {
      $j=0;
      while($j &lt; 100)
      {
           $pixel = $image-&gt;getImagePixelColor($i, $j); 
           $pixel-&gt;setColor("#000000");
           $j++;
      }
  
      $i++;
  }
  
  header("content-type:image/jpeg");
  echo $image;
  </code></pre>
  
  <p>Image size is 100x100.</p>
  
  <p>Any ideas?</p>