Home > Software design >  How can I crop a picture in a circular shape just like Instagram profile picture
How can I crop a picture in a circular shape just like Instagram profile picture

Time:12-20

I want the user to pick an image from gallery and crop it [like this], similar to Instagram profile picture (https://i.stack.imgur.com/nXvqg.jpg) , is there a package or something to help?

All the packages I found don't have cropping in a circular shape , I'm expecting maybe that there is a package that I didn't find or another way to do that

CodePudding user response:

CircleImageView is what you need

https://github.com/hdodenhof/CircleImageView

CodePudding user response:

You can use this, and change the shape to app:cropme_overlay_shape="circle"

https://github.com/TakuSemba/CropMe

  • Related