Skip to content

Commit

Permalink
Preserve the original image orientation when processing
Browse files Browse the repository at this point in the history
  • Loading branch information
brynbodayle committed Sep 10, 2012
1 parent c0deece commit 8a20d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networkimage/src/NIImageProcessing.m
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ + (UIImage *)imageFromSource: (UIImage *)src
if ([[UIImage class] respondsToSelector:@selector(imageWithCGImage:scale:orientation:)]) {
resultImage = [UIImage imageWithCGImage: resultImageRef
scale: screenScale
orientation: UIImageOrientationUp];
orientation: src.imageOrientation];

} else {
resultImage = [UIImage imageWithCGImage: resultImageRef];
Expand Down

0 comments on commit 8a20d59

Please sign in to comment.