From d843de4eb6c2299b95ecfe20aac5dafcdbcf95a6 Mon Sep 17 00:00:00 2001 From: Thomas Parslow Date: Thu, 3 May 2018 18:52:43 +0100 Subject: [PATCH] Set AVCaptureSessionPresetHigh before capturing photo My previous commit for this set it in one place but I forgot the other --- ios/RN/RNCamera.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/RN/RNCamera.m b/ios/RN/RNCamera.m index 47179d7..470bc68 100644 --- a/ios/RN/RNCamera.m +++ b/ios/RN/RNCamera.m @@ -456,6 +456,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil; return; } + self.session.sessionPreset = AVCaptureSessionPresetPhoto; + AVCaptureStillImageOutput *stillImageOutput = [[AVCaptureStillImageOutput alloc] init]; if ([self.session canAddOutput:stillImageOutput]) { stillImageOutput.outputSettings = @{AVVideoCodecKey : AVVideoCodecJPEG};