title: Universal Image Loader: Crop center image loading synchronously (no imageview) (Android, UIL)
body: <p>I'm using Universal Image Loader to:</p>
  
  <ul>
  <li><p>Load image synchronously</p></li>
  <li><p>Fix orientation</p></li>
  <li><p><em>Crop center (this is not working)</em></p></li>
  <li><p>Do all this with a low memory footprint</p></li>
  </ul>
  
  <p>I don't want to scale a bitmap by myself if I can do it with Universal Image Loader. The reason I ask this question is because I don't know wether this is possible or not with Universal Image Loader.</p>
  
  <p>I don't want (or need) to use an ImageView to load the bitmap I simply need a bitmap, but crop center it on the fly. Is this possible with UIL? I have gone through the issues on GH, through questions on SO and can't find an example for it.</p>
  
  <p>This is the code:</p>
  
  <pre><code>private Bitmap getBitmap(Uri uri, int width, int height) {
      DisplayImageOptions options = new DisplayImageOptions.Builder()
              .considerExifParams(true)
              .cacheOnDisk(true)
              .build();
      ImageSize size = new ImageSize(width, height);
      return mImageLoader.loadImageSync(uri.toString(), size, options);
  }
  </code></pre>
  
  <p>Thank you all!</p>