I build simple gallery. I load my photos using Glide. It looks like on images loaded by glide is some kind of streak (pixels seems to be visible).
I tried to load photo with changed Format RGB_565/ARGB_8888
and I used .dontTransform()
but still it looks worse than original photo.
Code I use to load :
ImageView photoDetails;
photoDetails = (ImageView)findViewById(R.id.imageDetails);
Glide.with(this)
.load(pictureFile) //path to picture
.asBitmap()
.format(DecodeFormat.PREFER_ARGB_8888)
.dontTransform()
.into(photoDetails);
To load the original image using
Glide
I use the code below:Remember that the picture in browser may look different on the device due to the screen resolution of your device. Using this method you will be able to check the pixels using the
Bitmap
object. Also, keep in mind that yourImageView
must havewidth
andheight
withWRAP_CONTENT
value.Please try this one:
Imageview property set
android:adjustViewBounds="true"