Photo capture not honoring AVCaptureSessionPreset640x480 value

In our app, we are capturing photos, but they do not need to be full high-resolution images. Actually, we're capturing "thumbnails". So, we have set the session.sessionPreset property to AVCaptureSession.Preset.vga640x480 and are using photo.previewCGImageRepresentation() in the photoOutput delegate.

We are setting the preset to 640x480 to get the desired aspect ratio.

Unfortunately, the photo that is captured is not always 640x480 in size. Instead, the photo that is captured is sometimes 1920x1080. Unfortunately, we've been unable to determine any particular situation that triggers the change.

The problem with this is that the aspect ratio between 640x480 and 1920x1080 are different, so our thumbnails get distorted if the photo that is captured is 1920x1080 instead of 640x480.

Also, we have set the isHighResolutionCaptureEnabled to false on the photoOutput object, but that does not appear to have any affect on things.

Any assistance would be appreciated.

Hello,

I'm not able to reproduce this myself, but maybe there is a missing detail that could explain it. In any case, I'd recommend that you Request Technical Support for this issue, that way I can take a look in more detail.

Photo capture not honoring AVCaptureSessionPreset640x480 value
 
 
Q