From 2dbd6a65dcb968dee9336cefe62ada09165b5bbe Mon Sep 17 00:00:00 2001 From: Ramon Gilabert Date: Thu, 8 Oct 2015 11:46:04 +0200 Subject: [PATCH] Improves the cropping of the image. --- Source/CameraView/CameraView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CameraView/CameraView.swift b/Source/CameraView/CameraView.swift index 37b04007..285d642a 100644 --- a/Source/CameraView/CameraView.swift +++ b/Source/CameraView/CameraView.swift @@ -197,7 +197,7 @@ class CameraView: UIViewController { func cropImage(image: UIImage) -> UIImage { guard let imageReference = CGImageCreateWithImageInRect(image.CGImage, - CGRect(x: 0, y: 0, width: image.size.height - 190, height: image.size.width)) else { return UIImage() } + CGRect(x: 0, y: 0, width: image.size.height - 285, height: image.size.width)) else { return UIImage() } let normalizedImage = UIImage(CGImage: imageReference, scale: 1, orientation: .Right) return normalizedImage