0

I want to get the width and height from the API URL without download the image.

Pravin Fofariya
  • 346
  • 2
  • 11

1 Answers1

3
Glide.with(getContext().getApplicationContext())
 .asBitmap()
 .load(path)
 .into(new SimpleTarget<Bitmap>() {
     @Override
     public void onResourceReady(Bitmap bitmap,
                                 Transition<? super Bitmap> transition) {
         int w = bitmap.getWidth();
         int h = bitmap.getHeight()
        // mImageView.setImageBitmap(bitmap);
     }
 });