Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crop an image with special frame

I am writing an application for android. I need to implement something like below image(From LG's wallpaper selection tool). The original image does not have a circle.

The actual image is cropped to outside rectangle, but thumbnail images are cropped to the inside circle.

I want to implement something like this, but the guide is not a rectangle, but a circle. Is there any examples or library for this?

enter image description here

like image 759
Jee Seok Yoon Avatar asked Dec 15 '22 03:12

Jee Seok Yoon


2 Answers

I wanted to implement the same thing, so I modified edmodo cropper to have circular selection. Take a look at my library CircleImageCropper.

like image 50
rachit Avatar answered Jan 04 '23 03:01

rachit


See this library to customize your camera functionality. Hope it works for you.

https://github.com/edmodo/cropper

like image 24
Salman Khan Avatar answered Jan 04 '23 02:01

Salman Khan