GKImagePicker icon indicating copy to clipboard operation
GKImagePicker copied to clipboard

the cropping is not done to the correct area

Open pichirichi opened this issue 11 years ago • 0 comments

The cropped are had a shift in position from the original area the user created. To resolve the issue I did the following change:

GKImageCropper.m - changed "self.view" to refer to the "scrollView" -(void)handleDoneButton { // ********************************************** // * Define CGRect to crop // ********************************************** -// double cropAreaHorizontalOffset = self.view.frame.size.width/2.--self.cropSize.width/2.; -// double cropAreaVerticalOffset = self.view.frame.size.height/2.-self.cropSize.height/2.;

  • double cropAreaHorizontalOffset = scrollView.frame.size.width/2.-self.cropSize.width/2.;
  • double cropAreaVerticalOffset = scrollView.frame.size.height/2.-self.cropSize.height/2.;

pichirichi avatar Oct 14 '13 07:10 pichirichi