Skip to content

Commit 4036eca

Browse files
Oliver (Cunpu) Bofacebook-github-bot-4
authored andcommitted
Fix pixelated image in storyline
Reviewed By: seanxiao Differential Revision: D2563069 fb-gh-sync-id: 86fa47801c34669b7b0c2826e0e776717f5605dc
1 parent a859d9e commit 4036eca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Libraries/CameraRoll/RCTPhotoLibraryImageLoader.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,16 @@ - (RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL
5858

5959
// Note: PhotoKit defaults to a deliveryMode of PHImageRequestOptionsDeliveryModeOpportunistic
6060
// which means it may call back multiple times - we probably don't want that
61+
imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat;
6162

6263
BOOL useMaximumSize = CGSizeEqualToSize(size, CGSizeZero);
6364
CGSize targetSize;
6465
if (useMaximumSize) {
6566
targetSize = PHImageManagerMaximumSize;
6667
imageOptions.resizeMode = PHImageRequestOptionsResizeModeNone;
67-
imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat;
6868
} else {
6969
targetSize = size;
7070
imageOptions.resizeMode = PHImageRequestOptionsResizeModeFast;
71-
imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeFastFormat;
7271
}
7372

7473
PHImageContentMode contentMode = PHImageContentModeAspectFill;

0 commit comments

Comments
 (0)