From 4036eca5708cb5079b3d034ded0b6ef5e753c473 Mon Sep 17 00:00:00 2001 From: "Oliver (Cunpu) Bo" Date: Wed, 21 Oct 2015 12:43:23 -0700 Subject: [PATCH] Fix pixelated image in storyline Reviewed By: seanxiao Differential Revision: D2563069 fb-gh-sync-id: 86fa47801c34669b7b0c2826e0e776717f5605dc --- Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m index e4b2a217d..d0e5b6459 100644 --- a/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m +++ b/Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m @@ -58,17 +58,16 @@ RCT_EXPORT_MODULE() // Note: PhotoKit defaults to a deliveryMode of PHImageRequestOptionsDeliveryModeOpportunistic // which means it may call back multiple times - we probably don't want that + imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat; BOOL useMaximumSize = CGSizeEqualToSize(size, CGSizeZero); CGSize targetSize; if (useMaximumSize) { targetSize = PHImageManagerMaximumSize; imageOptions.resizeMode = PHImageRequestOptionsResizeModeNone; - imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat; } else { targetSize = size; imageOptions.resizeMode = PHImageRequestOptionsResizeModeFast; - imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeFastFormat; } PHImageContentMode contentMode = PHImageContentModeAspectFill;