{"action":"created","issue":{"url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/200","repository_url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper","labels_url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/200/comments","events_url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/200/events","html_url":"https://github.com/ruslanskorb/RSKImageCropper/issues/200","id":363375483,"node_id":"MDU6SXNzdWUzNjMzNzU0ODM=","number":200,"title":"Use CustomMode clip. Get wrong image.","user":{"login":"Karthus1110","id":13864988,"node_id":"MDQ6VXNlcjEzODY0OTg4","avatar_url":"https://avatars1.githubusercontent.com/u/13864988?v=4","gravatar_id":"","url":"https://api.github.com/users/Karthus1110","html_url":"https://github.com/Karthus1110","followers_url":"https://api.github.com/users/Karthus1110/followers","following_url":"https://api.github.com/users/Karthus1110/following{/other_user}","gists_url":"https://api.github.com/users/Karthus1110/gists{/gist_id}","starred_url":"https://api.github.com/users/Karthus1110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karthus1110/subscriptions","organizations_url":"https://api.github.com/users/Karthus1110/orgs","repos_url":"https://api.github.com/users/Karthus1110/repos","events_url":"https://api.github.com/users/Karthus1110/events{/privacy}","received_events_url":"https://api.github.com/users/Karthus1110/received_events","type":"User","site_admin":false},"labels":[{"id":424143077,"node_id":"MDU6TGFiZWw0MjQxNDMwNzc=","url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/labels/needs%20more%20information","name":"needs more information","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"ruslanskorb","id":1182823,"node_id":"MDQ6VXNlcjExODI4MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1182823?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslanskorb","html_url":"https://github.com/ruslanskorb","followers_url":"https://api.github.com/users/ruslanskorb/followers","following_url":"https://api.github.com/users/ruslanskorb/following{/other_user}","gists_url":"https://api.github.com/users/ruslanskorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslanskorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslanskorb/subscriptions","organizations_url":"https://api.github.com/users/ruslanskorb/orgs","repos_url":"https://api.github.com/users/ruslanskorb/repos","events_url":"https://api.github.com/users/ruslanskorb/events{/privacy}","received_events_url":"https://api.github.com/users/ruslanskorb/received_events","type":"User","site_admin":false},"assignees":[{"login":"ruslanskorb","id":1182823,"node_id":"MDQ6VXNlcjExODI4MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1182823?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslanskorb","html_url":"https://github.com/ruslanskorb","followers_url":"https://api.github.com/users/ruslanskorb/followers","following_url":"https://api.github.com/users/ruslanskorb/following{/other_user}","gists_url":"https://api.github.com/users/ruslanskorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslanskorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslanskorb/subscriptions","organizations_url":"https://api.github.com/users/ruslanskorb/orgs","repos_url":"https://api.github.com/users/ruslanskorb/repos","events_url":"https://api.github.com/users/ruslanskorb/events{/privacy}","received_events_url":"https://api.github.com/users/ruslanskorb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-09-25T01:19:19Z","updated_at":"2018-09-25T07:54:19Z","closed_at":null,"author_association":"NONE","body":"![c6960693-4649-499f-afad-45eedbd24a24](https://user-images.githubusercontent.com/13864988/45987339-631f5480-c0a3-11e8-9911-3f55bd5bdbdf.png)\r\n\r\nI want to clip a human face.But i got this wrong shape.Last version I use get the correct image.But this time,I update the pod and update to newest version of RSKImageCropper.It's work something wrong.\r\n\r\n![826c5fbf-f61a-4711-a24a-96fe0f893993](https://user-images.githubusercontent.com/13864988/45987347-6f0b1680-c0a3-11e8-854a-1d135e4d3bea.png)\r\n\r\nCan u help me to see what is the question?Here is the code.Thanks.\r\n\r\n    - (CGRect)imageCropViewControllerCustomMaskRect:(RSKImageCropViewController *)controller\r\n    {\r\n        CGSize maskSize;\r\n        if ([controller isPortraitInterfaceOrientation]) {\r\n            maskSize = CGSizeMake(250, 250);\r\n    //        maskSize = CGSizeMake(180, 220);\r\n        } else {\r\n            maskSize = CGSizeMake(220, 220);\r\n        }\r\n        \r\n        CGFloat viewWidth = CGRectGetWidth(controller.view.frame);\r\n        CGFloat viewHeight = CGRectGetHeight(controller.view.frame);\r\n        \r\n        CGRect maskRect = CGRectMake((viewWidth - maskSize.width) * 0.5f,\r\n                                    (viewHeight - maskSize.height) * 0.5f,\r\n                                    maskSize.width,\r\n                                    maskSize.height);\r\n        \r\n        return maskRect;\r\n    }\r\n\r\n    // Returns a custom path for the mask.\r\n    - (UIBezierPath *)imageCropViewControllerCustomMaskPath:(RSKImageCropViewController *)controller\r\n    {\r\n        return [self cropPathWithRect:controller.maskRect];\r\n    }\r\n\r\n    // Returns a custom rect in which the image can be moved.\r\n    - (CGRect)imageCropViewControllerCustomMovementRect:(RSKImageCropViewController *)controller\r\n    {\r\n        return [self cropPathWithRect:controller.maskRect].bounds;\r\n    }\r\n\r\n    - (UIBezierPath *)cropPathWithRect:(CGRect)rect\r\n    {\r\n        UIBezierPath *path = [UIBezierPath bezierPath];\r\n\r\n        CGPoint top_point = (CGPoint){CGRectGetMidX(rect), CGRectGetMinY(rect) + 30};\r\n        CGPoint left_ctrl_point = (CGPoint){CGRectGetMinX(rect), CGRectGetMinY(rect) + 20};\r\n        CGPoint right_ctrl_point = (CGPoint){CGRectGetMaxX(rect), CGRectGetMinY(rect) + 20};\r\n        CGPoint left_bottom_point = (CGPoint){CGRectGetMinX(rect) + 45, CGRectGetMaxY(rect)*3/4 + 20};\r\n        CGPoint right_bottom_point = (CGPoint){CGRectGetMaxX(rect) - 45, CGRectGetMaxY(rect)*3/4 + 20};\r\n        CGPoint bottom_ctrl_point = (CGPoint){CGRectGetMidX(rect), CGRectGetMaxY(rect) + 50};\r\n        \r\n\r\n        [path moveToPoint:top_point];\r\n        [path addQuadCurveToPoint:right_bottom_point controlPoint:right_ctrl_point];\r\n        [path addQuadCurveToPoint:left_bottom_point controlPoint:bottom_ctrl_point];\r\n        [path addQuadCurveToPoint:top_point controlPoint:left_ctrl_point];\r\n        [path closePath];\r\n\r\n        return path;\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/comments/424243146","html_url":"https://github.com/ruslanskorb/RSKImageCropper/issues/200#issuecomment-424243146","issue_url":"https://api.github.com/repos/ruslanskorb/RSKImageCropper/issues/200","id":424243146,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDI0MzE0Ng==","user":{"login":"Karthus1110","id":13864988,"node_id":"MDQ6VXNlcjEzODY0OTg4","avatar_url":"https://avatars1.githubusercontent.com/u/13864988?v=4","gravatar_id":"","url":"https://api.github.com/users/Karthus1110","html_url":"https://github.com/Karthus1110","followers_url":"https://api.github.com/users/Karthus1110/followers","following_url":"https://api.github.com/users/Karthus1110/following{/other_user}","gists_url":"https://api.github.com/users/Karthus1110/gists{/gist_id}","starred_url":"https://api.github.com/users/Karthus1110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karthus1110/subscriptions","organizations_url":"https://api.github.com/users/Karthus1110/orgs","repos_url":"https://api.github.com/users/Karthus1110/repos","events_url":"https://api.github.com/users/Karthus1110/events{/privacy}","received_events_url":"https://api.github.com/users/Karthus1110/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T07:54:19Z","updated_at":"2018-09-25T07:54:19Z","author_association":"NONE","body":"Thanks very much.I will try it.@ruslanskorb "}}
{"actor":{"display_login":"Karthus1110"}}