TimOliver/TOCropViewController

square image with circular cropping

yuriandryu opened this issue · 4 comments

image

image

with circular cropping, I would like to be able to get 2 images (round, cropped image) and square image without cropped edges. Please make this opportunity as soon as possible.

it's a good feature, because if we will usually upload square image to our server in case in the future the avatar change to square style. if you check tiktok, they still keep square avatar image, the circle is just a preview.

This is actually a very useful feature. I also want to let users crop with a circle frame but want to keep the square image later on, in case of design changes in the future. So now I don't use circle just for this reason, and make users crop using rectangle and then round images in the app only by rounding UIImageView.

@yuriandryu use this function let squareImg = self.image.croppedImage(withFrame: cropRect, angle: angle, circularClip: false)

image