title: Android Picasso load image to Bitmap variable cropping it to square
body: <p>I need to load some images from URI to Bitmap variables and perform some operation with them togheter. I need the bitmaps to be squared images with fixes size, scaled down and cropped. By now I use this code:</p>
  
  <pre><code>return Picasso.with(c).load(imageUri).resize(size, size).get();
  </code></pre>
  
  <p>but, obviously, the image will be resized without keep its aspect ratio.</p>
  
  <p>I want to resize the image with these requirements:</p>
  
  <ul>
  <li>the smaller dimension (width or height) should be equals to <code>size</code></li>
  <li>the greater dimension should be cropped to <code>size</code>, keep image centered</li>
  </ul>