Search code examples
iphoneiosobjective-cgpuimage

GPUImageStillCamera output image resolution


I'm trying to take photo from camera with GPUImage framework. Use standard implementation. But my output image has too low resolution - {640, 852}. Is there way to get more higher resolution?


Solution

  • I had the same problem a while back. It was the way the AVCaptureSession was setup.

    Try initializing the camera with the following:

    GPUImageStillCamera *videoCamera = [[GPUImageStillCamera alloc]
                initWithSessionPreset:AVCaptureSessionPresetPhoto
                       cameraPosition:AVCaptureDevicePositionBack];