Getting Bitmap from Image using Glide in android

I want to get the bitmap from an image using Glide. I am doing the following –

Bitmap chefBitmap = Glide.with(MyActivity.this)
.load(chef_image)
.asBitmap()
.into(100, 100)
.get();

It used to work with the previous Glide version.
But it does not work with this in gradle – “compile ‘com.github.bumptech.glide:glide:4.0.0′”

I want to use this dependency because this is the latest version.

Can anyone help me in this regard. Thanks in advance.

You should add in your

dependencies{
  compile 'com.github.bumptech.glide:glide:4.0.0'
  compile 'com.android.support:support-v4:25.3.1'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'

Also, give permission in your manifest.xml

Try this in your build.gradle;

 compile 'com.github.bumptech.glide:glide:3.7.0'

and load your bitmap like below;

  Glide.with(activity).load(m.getThumbnailUrl())
            .thumbnail(0.5f)
            .crossFade()
            .diskCacheStrategy(DiskCacheStrategy.ALL)
            .into(imageview);