Skip to content

Commit

Permalink
Merge pull request #47 from hyperoslo/fix/cropping-of-image
Browse files Browse the repository at this point in the history
Improves the cropping of the image.
  • Loading branch information
RamonGilabert committed Oct 8, 2015
2 parents 03c9f18 + 2dbd6a6 commit b0f29da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CameraView/CameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0f29da

Please sign in to comment.