title: yii2 resize images maintaining aspect ratio with Imagine
body: <p>I got this code in yii2:</p>
  
  <pre><code>Image::thumbnail($path, 100, 100)-&gt;save($thumbnail, ['quality' =&gt; 50]);
  </code></pre>
  
  <p>I thought that it will resize the original image maintaining the aspect ratio.
  But it just creates a box...
  What can be wrong?</p>