title: How to edit image before upload in Yii framework?
body: <p>How to edit the image before upload (i.e make circle, square, effects, etc.).
  Below I have used Krajee FileInput widget, how do I edit my image before upload?</p>
  
  <pre><code>&lt;?php
          echo $form-&gt;field($model, 'imagefile')
          -&gt;widget(FileInput::classname(), [
          'options'=&gt;['multiple'=&gt;false]
          ]);
          ?&gt;
  </code></pre>