title: set image quality in Imagemagick
body: <p>I to set the quality of the img but it dosent work.</p>
  
  <pre><code>  $image = 'the path to the img';
   /*** a new imagick object ***/
          $im = new Imagick();
  
          /*** ping the image ***/
          $im-&gt;pingImage($image);
  
          /*** read the image into the object ***/
          $im-&gt;readImage( $image );
  
          $im-&gt;setImageFormat( "png" );
  
          $im-&gt;setImageCompression(imagick::COMPRESSION_JPEG);
          $im-&gt;setImageCompressionQuality(1);
          $im-&gt;stripImage();
  
          $im-&gt;cropThumbnailImage(90,90);
  
          /*** write image to disk ***/
          $im-&gt;writeImage( "tmp/spork1.png" );
  
          $im-&gt;destroy();
  </code></pre>
  
  <p>I try with  <code>$im-&gt;setCompressionQuality(1);</code> but dosent work then i google it and some people suggest to use <code>$im-&gt;setImageCompressionQuality(1);</code> but no effect what so ever</p>