Read More
Read now

How to get image width and height with picasso library

Save

In this blog,
I have shown you the how to get the image width and height in Picasso.

Get the width and height

You may get the Bitmap dimensions only after downloading the image. you must use synchronous method call like this:

Synchronous method call like this:

This block of code will give the exception, so don’t forget to put this code in try/catch block.

Or

you can use the Target(this is the better way to get the width and height)

 

 

 

 

. . .

Leave a Comment

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


Be the first to comment.

css.php

Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!

Deniel Kerr

Owner and Founder. Opencart

Talk to Sales
Start a Project

    Message Sent!

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

    Back to Home