Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounded border line is double wide when the image has transparent color? #5

Open
psmejkal opened this issue Jul 2, 2015 · 1 comment

Comments

@psmejkal
Copy link

psmejkal commented Jul 2, 2015

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?

@melvitax
Copy link
Owner

melvitax commented Dec 4, 2015

can you put it in an isolated project file and send it to me to look into it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants