Hi,
I'm using your library to crop images with 2 px white border and for the exactly same parameters (same image size, border color, border width, image scale) I'm getting too wide border line for some images. When I tried to debug the "applyBorder:" method I found out that even the "rect" and "inset" vars are the same.
My code is something here:
resultImage = resultImage.resize(CGSizeMake(100, 100), contentMode: UIImageContentMode.ScaleAspectFill)!
resultImage = resultImage.roundCornersToCircle(border: 2, color: UIColor.whiteColor())!
Any ideas?