title: how do i use imagick in php? (resize & crop)
body: <p>I use imagick for thumbnail crop, but sometimes cropped thumbnails are missing top part of the images (hair, eyes).</p>
  
  <p>I was thinking to resize the image then crop it. Also, I need to keep the image size ratio.</p>
  
  <p>Below is the php script I use for crop:</p>
  
  <pre><code>$im = new imagick( "img/20130815233205-8.jpg" );
  $im-&gt;cropThumbnailImage( 80, 80 );
  $im-&gt;writeImage( "thumb/th_80x80_test.jpg" );
  echo '&lt;img src="thumb/th_80x80_test.jpg"&gt;';
  </code></pre>
  
  <p>Thanks..</p>