GetStream / avatarview-android

✨ Supports loading profile images with fractional styles, shapes, borders, indicators, and initials for Android.
https://getstream.github.io/avatarview-android/
Apache License 2.0
432 stars 26 forks source link

The photo goes out of the round line #47

Open Himanshu-381 opened 1 year ago

Himanshu-381 commented 1 year ago

1111

== Here My Code: loadImage( data = imageUrl, requestBuilder = Glide.with(context) .asDrawable() .override(120, 120) .circleCrop() .dontAnimate() .listener(object : RequestListener { override fun onLoadFailed( e: GlideException?, model: Any?, target: com.bumptech.glide.request.target.Target?, isFirstResource: Boolean ): Boolean { return false } override fun onResourceReady( resource: Drawable?, model: Any?, target: com.bumptech.glide.request.target.Target?, dataSource: DataSource?, isFirstResource: Boolean ): Boolean { // Image loaded successfully return false } })

== Dependency //Image Avatar View implementation "io.getstream:avatarview-coil:1.0.7" implementation "io.getstream:avatarview-glide:1.0.7" implementation("com.github.Commit451.coil-transformations:transformations:2.0.2") implementation("io.coil-kt:coil:2.2.2")

Please check this one issue and let me know if it is fix