Check Mobile App
Read now
Start a Project

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

Save

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.

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Excellent work, fast, good quality and understood the brief perfectly! Quick responses developing the project and very good cooperation. I suggest to anyone.

Stathis Plakidas

Stathis Plakidas

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home