Glide: Why does a image loaded by glide has bad quality compared with setImagexxx() by imageView?

Created on 16 Nov 2016  ·  5Comments  ·  Source: bumptech/glide


Glide Version:
3.7.0


Device/Android Version:
all the devices


Issue details / Repro steps / Use case background:
Why does a image loaded by glide has bad quality compared with setImage() by imageView?
I has tried various file types(e.g. jpg, png, webp) and the effects look so bad always. Once i used setImagexxx() for the imageView, the effect is lossless.
Does i have any ways to load lossless image by glide?
Thanks!

question

All 5 comments

There are ways.
Can you please show with a screenshot what you mean by "bad"?

image loaded by glide:
device-2016-11-17-135349

image loaded by setImageURI():
device-2016-11-17-142707

Ah, the gradients :)
Read this: https://github.com/bumptech/glide/wiki/Configuration#bitmap-format
Along global config you can also set format per request via load().asBitmap().format()

solved!
thx!
O(≧∇≦)O

@TWiStErRob
I have created a custom GlideModule
I have also added it in AndroidManifest.xml ... do I have to do something else for it to be used for Glide?
Thanks in advance

Was this page helpful?
0 / 5 - 0 ratings