title: Load large images with Picasso and custom Transform object
body: <p>I'm getting an Out Of Memory exception using Picasso when loading "large" images (> 1.5MB) from Android Gallery (using startActivityForResult).</p>
  
  <p>I'm using a custom Target object because I need to preprocess the Bitmap when it is ready and also I'm using a custom Transform object to scale the Bitmap.</p>
  
  <p>The problem is that the method <code>public Bitmap transform(Bitmap source)</code> on my Transform object is never called because the Out Of Memory Exception, so I don't get the oportunity to resample the image.</p>
  
  <p>But, if I use the <code>.resize(maxWidth, maxHeight)</code> method, then it loads the image OK. I supossed that the Transform object was for that purpose too, but it seems that the transform method is called after the resize, and, if I don't call resize, then it will end in an Out of Memory..</p>
  
  <p>The problem is that with resize I need to specify both width and height, but I need to scale and keep the aspect ratio.</p>
  
  <p>Consider that the images will be selected from user Gallery, so they can be bigger or smaller, portrait, squared or landscape, etc, so I need my own Transformation object to perform the logic that needs my application. </p>