Loading image with glide is slow

glide android
glide gif slow
glide load image from url android
glide progressive loading
glide loads the old cache image instead of the new image
glide load image in background thread
glide not loading image from url
glide thumbnail

I have app connect with server and when pics load seems so slow and when scroll that up and down seems glide want read image again! This is my adapter of glide:


public class DataAdapter extends RecyclerView.Adapter<DataAdapter.ViewHolder> {
    private Context context;
    private ArrayList<AndroidVersion> android;

    public DataAdapter(Context context,ArrayList<AndroidVersion> android) {
        this.context = context;
        this.android = android;

    public DataAdapter.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
        View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.card_row, viewGroup, false);
        return new ViewHolder(view);

    public void onBindViewHolder(DataAdapter.ViewHolder viewHolder, int i) {


        // load image into imageview using glide

    public int getItemCount() {
        return android.size();

    public class ViewHolder extends RecyclerView.ViewHolder{
        private TextView tv_name,tv_version,tv_api_level;
        public ImageView tv_image;
        public ViewHolder(View view) {

            tv_name = (TextView)view.findViewById(R.id.tv_name);
            tv_version = (TextView)view.findViewById(R.id.tv_version);
            tv_api_level = (TextView)view.findViewById(R.id.tv_api_level);
            tv_image= (ImageView) view.findViewById(R.id.img);



If any one can help please do that!

Just add this when you get image from URL, this code reduces the size of that image

you can also do this,

ByteArrayOutputStream bytes = new ByteArrayOutputStream();

    //save scaled down image to cache dir
    newBitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes);

    File imageFile = new File(filePath);

    // write the bytes in file
    FileOutputStream fo = new FileOutputStream(imageFile);

check this example

Why loading a small image with Glide costs more time than loading , I don't konw why Glide loads it so slowly. public void load(View view) { Glide.with(​this) .load  Force stop the application and lanuch it again. It is obvious that loding image with Glide is slower (several milliseconds) than loading it with ImageView directly. And lastly, the 3rd one.Let's make a comparison. The size of sample image doge.jpg is just 484*252. I don't konw why Glide loads it so slowly.

I used dontTransform() method and it almost saved me a second. Images are loaded to the list really first.

Loading image from url taking too much time · Issue #1460 , Glide Version:3.7.0 Integration libraries: volley 1.0.0 Device/Android find solution? loading images with glide is so slow compared to loading  Glide Version:3.7.0. Integration libraries: volley 1.0.0. Device/Android Version: fails on samsung galaxy s4 5.0.1. Issue details / Repro steps / Use case background: I am showing images in listview which has image(120*120) and also showing full image in detail view when loading images taking too much time. Average original images size is

use diskCacheStrategy(DiskCacheStrategy.ALL).

for more visit this Click Here

Best strategy to load images using Glide, Glide is an Image Loader Library for Android developed by bumptech and is a library that is recommended by Google. It has been used in  Upon clicking an image in gridview I want to display the image in another activity (image size about 20-25% of screen height) Glide . with( this ) .load(photo) .placeholder( null ) .diskCacheStrategy( DiskCacheStrategy .

Glide - Android Image Loading, Glide is a fast and efficient image loading library for Android focused on smooth scrolling. Glide offers an easy to use API, a performant and extensible resource  Disk caching: Glide downloads the image from the given URL, resize it to the size of the image view where you want to display the image and stores it to the disk cache. Glide will store two different copies of same image if you are putting the same image in two different Image Views. That will increase the disk cache size, but it will increase the processing speed. Thumbnail support: With Glide, we can load multiple images into the same view at the same time i.e we can add thumbnails to our

Glide v4 : Fast and efficient image loading for Android, Both Picasso and Glide first fetch an instance of the library and then allow you to specify the URL of the image to load, a placeholder while  There are many pitfalls when loading images in Android such as memory issues, slow image loading and unresponsive UI which can be handled with image loading library Glide.

Solving the Android Image Loading Problem: An Updated Guide , Loading images in App is so common today, especially images from a the video (but faster loading, since I explicitly slow the network down  Glide supports fetching, decoding, and displaying video stills, images, and animated GIFs. Glide includes a flexible API that allows developers to plug into almost any network stack.