Reputation: 346
I want to get the width and height from the API URL without download the image.
Upvotes: 0
Views: 597
Reputation: 61
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);
}
});
Upvotes: 3