Skip to content

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

Open

Description

@psmejkal

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?

Activity

  1. melvitax commented on Dec 4, 2015

    @melvitax
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions