Reputation: 31
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
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