title: Imagick::resizeImage vs Imagick::scaleImage
body: <p>What are the differences between <code>resizeImage</code> and <code>scaleImage</code>?</p>
  
  <p>I need to resize an image if its size is > $myLimit </p>
  
  <p>Example (pseudocode):</p>
  
  <pre><code>$myLimit = 1MB
  user uplaod an image of 1000x1000 of 2MB
  2MB &gt; $myLimit
  while( $imagefilesize &gt; $myLimit  ) {
    resizeImageBy 0.9%;
  }
  
  //&gt; output 900x900 image of 900 kB
  </code></pre>
  
  <p>In the <code>while</code> block, which of the two methods should I use?</p>
  
  <p>Edit: I found something that could help: <a href="http://www.imagemagick.org/Usage/resize/">http://www.imagemagick.org/Usage/resize/</a> But could someone simplify that?</p>