From 57a6a02dffdfb2517535d05938a737296c1fa7e4 Mon Sep 17 00:00:00 2001 From: Adam Roth Date: Tue, 11 Aug 2015 08:41:30 -0700 Subject: [PATCH] [CameraRoll] Image orientation fix for #1845 Summary: PR for #1845 Use ALAssetOrientationUp for image orientation. Originally committed at https://github.com/facebook/react-native/commit/b34a85f4da87c62656ca9d29c5085a46e768d147 Closes https://github.com/facebook/react-native/pull/2214 Github Author: Adam Roth --- Libraries/Image/RCTImageLoader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Image/RCTImageLoader.m b/Libraries/Image/RCTImageLoader.m index 34a7dc2fc..44ad8d6b1 100644 --- a/Libraries/Image/RCTImageLoader.m +++ b/Libraries/Image/RCTImageLoader.m @@ -103,7 +103,7 @@ static UIImage *RCTScaledImageForAsset(ALAssetRepresentation *representation, if (imageRef) { UIImage *image = [UIImage imageWithCGImage:imageRef scale:scale - orientation:(UIImageOrientation)representation.orientation]; + orientation:UIImageOrientationUp]; CGImageRelease(imageRef); return image; }