square image with circular cropping
yuriandryu opened this issue · 4 comments
yuriandryu commented
ruofeilyu commented
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.
erginbilgin commented
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.
upscale-duc commented
@yuriandryu use this function let squareImg = self.image.croppedImage(withFrame: cropRect, angle: angle, circularClip: false)
upscale-duc commented