How to use transform method in picasso to avoid the oom issue

In this blog,
We are going to tell you how to cure the out of memory issue while loading the images in Picasso library using transform and resize methods.

If you want to resize the image with aspect ratio and avoid to OOM error then you can use the transform method of Picasso.

How to use Transform method

BitmapTransform

How to use resize method

Transform images to properly adjust into layouts and to overcome the memory.

centerCrop – Scale the image venerate the aspect ratio until it fills the size.

Crop either the top and bottom or left and right so it matches the size exactly.

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close