wasabeef / glide-transformations

An Android transformation library providing a variety of image transformations for Glide.
Apache License 2.0
9.9k stars 1.41k forks source link

Images are not Blurred in Android 4.4.1 (Glide-transformations 4.0.1) #161

Open AndreaLVR opened 5 years ago

AndreaLVR commented 5 years ago

Hi,

I tried a BlurTransformation on multiple images, but the result is that the image is not blurred. I tried to increase the value of "radius" (I tried (25,3), (100,2), (1,1), (20,3)) but nothing, the images still remain as before.

I also tried:

.apply(new RequestOptions().transform(new BlurTransformation(25))), but nothing.

iAlex97 commented 5 years ago

Hello,

I also experienced this kind of "issue". In my case, I was overriding this transformation by a .centerCrop() call, therefore:

This seemed like the BlurTransformation was in vain and the image looked like the original

GlideApp.with(this)
                    .load("http://url.com")
                    .transform(new BlurTransformation())
                    .centerCrop()
                    .into(imageView);

while this blurred the image properly:

GlideApp.with(this)
                    .load("http://url.com")
                    .centerCrop()
                    .transform(new BlurTransformation())
                    .into(imageView);