user3605994
user3605994

Reputation: 31

Load low resolution images using Glide

As the title suggests, is there a way to load a low resolution image (maybe about half the image's original size) using Glide? I don't know if it makes sense but I basically need it so data users of my application can minimize their data consumption. I need it to be the final image that Glide loads into the view (not thumbnail).

Upvotes: 1

Views: 1595

Answers (1)

Black_Dreams
Black_Dreams

Reputation: 610

I Suggest Server will do this and you can also compress and resize the image when load

RequestOptions reqOptions = new RequestOptions()
    .fitCenter() 
    .override(100, 100);

 Glide.with(context)
     .asBitmap()
     .apply(reqOptions)
     .load(imageUrl)
     .into(bitmapView);

Upvotes: 2

Related Questions