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

Glide v4 - CenterCrop and BlurTransformation doesn't work together #108

Closed i-petro closed 6 years ago

i-petro commented 6 years ago

CenterCrop and BlurTransformation doesn't work together. Code example:

val ro = RequestOptions.bitmapTransform(MultiTransformation(CircleCrop(), BlurTransformation()))

GlideApp.with(itemView.img)
                    .load(data.photoUrl)
                    .apply(ro)
                    .into(itemView.img)

But works as expected with:

GlideApp.with(context)
            .asBitmap()
            .transforms(BlurTransformation() ,CircleCrop())
            .load(url)
            .into(iv)