Skip to content Skip to sidebar Skip to footer

Android-image-cropper To Circle

I am trying to crop my images as a circle, for this I am using the provided library of Android-Image-Cropper - 'com.theartofdev.edmodo:android-image-cropper:2.4.+' At the moment I

Solution 1:

you can use glide for the same as mentioned in the first comment How to round an image with Glide library?

secondly, you can use the below library compile 'de.hdodenhof:circleimageview:1.2.1'

using Picasso you can use above circle image library ab can load image in it using picasso like this:

Picasso.with(activity).load(url).into(ImageView);

example :

<de.hdodenhof.circleimageview.CircleImageView
                        android:id="@+id/img_profile"
                        android:layout_width="100dp"
                        android:layout_height="100dp" />



Picasso.with(activity).load(url).into(ImageView);

if you don't want to use circleImageView then you can create a transformation as used in this links comment

android: create circular image with picasso

Post a Comment for "Android-image-cropper To Circle"