TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Rounded corners

Open drougojrom opened this issue 8 years ago • 3 comments
trafficstars

Feature Request

Hey, Tim!

I included your library in a couple of my projects before and I would really prefer to use it in a current one, but I'm looking for a 'rounded corners' feature, so the cropped image was not in a circle, but in rectangular with rounded corners. It would be also great if there would be a possibility to change the value of that corner radius.

drougojrom avatar Jul 17 '17 13:07 drougojrom

Hi @drougojrom! Cool! Glad to hear you were able to make use of the library in several projects. :)

Hmmm, interesting! What is your use case for that exactly? Would the rectangle need to be resizable? Or locked in place like the circle mode?

It might be a bit tricky. Since the crop view controller relies on the image's own sizing, you'd have to specify the corner radius as a fraction instead of a discrete number.

TimOliver avatar Jul 31 '17 17:07 TimOliver

It can be like circle mode, in my case, it is completely fine

drougojrom avatar Jul 31 '17 20:07 drougojrom

I'd like to implement this at some point, but I don't have the time to add any more features that don't align with my own app for now.

I'll stick the pr requested tag here in case anyone else would like to try implementing this. :)

TimOliver avatar Dec 14 '17 06:12 TimOliver