Skip to content

Commit

Permalink
Added reference to gist
Browse files Browse the repository at this point in the history
  • Loading branch information
kanunnikau committed Mar 16, 2016
1 parent 488eab3 commit fd6b43f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UIImage+BlurredFrame.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ - (UIImage *)croppedImageAtFrame:(CGRect)frame {
frame = CGRectMake(frame.origin.x * self.scale, frame.origin.y * self.scale, frame.size.width * self.scale, frame.size.height * self.scale);
UIImage *rotatedImage = self;
// make sure its orientation is up otherwise later on we'll have trouble merging
// based on this gist: https://gist.github.com/aleph7/5717438
if (self.imageOrientation != UIImageOrientationUp) {
rotatedImage = [self addImageToImage:nil atRect:CGRectZero];
}
Expand Down

0 comments on commit fd6b43f

Please sign in to comment.