picasso-transformations icon indicating copy to clipboard operation
picasso-transformations copied to clipboard

how to add Blur Effect using Kotlin

Open AgungLaksana opened this issue 5 years ago • 1 comments

I am sorry if this is trivial, but I am a beginner. and currently I am using Kotlin. I want to blur my image after downloading using picasso.

and here is the code I use:

Picasso.get()
           .load(currentEvent.posterDownloadPath)
           .transform(BlurTransformation(25,3))
           .into(recommendedEventViewHolder.blurryImageView)

but unfortunately I have error like in this image: https://i.stack.imgur.com/Nvq53.png

so how to properly use BlurTransformation effect ?

AgungLaksana avatar Mar 10 '19 03:03 AgungLaksana

I finally find out why I still have the error, i.stack.imgur.com/uyEoF.png . previously I add wasabeef transformation for GLIDE, and when I choose the wrong BlurTransformation class, I choose glide instead of Picasso. problem solved, thanks

AgungLaksana avatar Mar 11 '19 01:03 AgungLaksana